Stricter syntax
This commit is contained in:
parent
b4e87b4b5f
commit
f42bd9cbaf
30
README.md
30
README.md
@ -2,14 +2,14 @@
|
||||
|
||||
##Canvas
|
||||
```
|
||||
@ 100 100 ; New canvas of size
|
||||
@ 100 100 ff0000 ; New canvas with red background
|
||||
@ 600x400 ; New canvas of size 600w and 400h
|
||||
@ 100x100 #ff0000 ; New canvas of size 100w and 100h with red background
|
||||
@ ? ; Clear canvas
|
||||
```
|
||||
|
||||
##Background
|
||||
```
|
||||
* ff0000 ; Fill background with red color
|
||||
* #ff0000 ; Fill background with red color
|
||||
* ? ; Remove background
|
||||
```
|
||||
|
||||
@ -27,8 +27,8 @@ $ new_name.jpg ; Create a new file with name
|
||||
|
||||
##Load File
|
||||
```
|
||||
/ dir/file_name.jpg 10 10 100 100 ; Load image, at 10,10 with size 100x100
|
||||
/ dir/file_name.jpg 10 10 100 ; Load image, at 10,10 with size 100w and auto height
|
||||
/ dir/file_name.jpg 10,10 100x100 ; Load image, at 10,10 with size 100x100
|
||||
/ dir/file_name.jpg 10,10 100x ; Load image, at 10,10 with size 100w and auto height
|
||||
/ ~ ; Load last history id
|
||||
/ 3 ; Load history id
|
||||
```
|
||||
@ -37,29 +37,28 @@ $ new_name.jpg ; Create a new file with name
|
||||
```
|
||||
& 10 ; Size 10
|
||||
& -4 ; Eraser, Size 4
|
||||
& 4 ff0000 ; Red brush, Size 4
|
||||
& 4 #ff0000 ; Red brush, Size 4
|
||||
& ? ; Size 1, black
|
||||
```
|
||||
|
||||
##Pointers
|
||||
```
|
||||
> 10 0 ; Add pointer at pos
|
||||
> 10 0 ; Remove pointer at pos
|
||||
> 0 0 400 0 ; Mirror X, at 400px
|
||||
> 10,0 ; Add pointer at pos
|
||||
> 0,0 400,0 ; Mirror X, at 400px
|
||||
> ? ; Remove pointers
|
||||
```
|
||||
|
||||
##Guides
|
||||
```
|
||||
| 10 10 100 100 ; Draw a guide
|
||||
| -100 ; Draw a grid at every 100px
|
||||
| 10,10 100x100 ; Draw a guide
|
||||
| -100,0 ; Draw a grid at every 100px
|
||||
| ? ; Remove guides
|
||||
```
|
||||
|
||||
##Translate*
|
||||
```
|
||||
+ 0 10 ; Translate 10px vertically
|
||||
- 20 20 ; Translate 20px leftward and downward
|
||||
^ 0,10 ; Translate 10px vertically
|
||||
^ 20,20 100x100 40,40 ; Translate a specific portion to a specific location
|
||||
```
|
||||
|
||||
##Zoom*
|
||||
@ -77,8 +76,7 @@ $ new_name.jpg ; Create a new file with name
|
||||
#Units*
|
||||
```
|
||||
5 ; 5px
|
||||
5w ; 5% of canvas width
|
||||
7h ; 7% of canvas height
|
||||
5s ; Brush speed
|
||||
5,7 ; 5x 7y
|
||||
7x9 ; 7w 9h
|
||||
{5h - 5s} ; 5% of canvas width, minus brush speed
|
||||
```
|
||||
|
46
_notes.txt
46
_notes.txt
@ -1,46 +0,0 @@
|
||||
|
||||
Ronin
|
||||
|
||||
Canvas
|
||||
@ 100 100 ; New canvas of size
|
||||
@ ? ; Clear canvas
|
||||
|
||||
Layers
|
||||
# 3 ; Layer 3
|
||||
# ? ; Layer 1
|
||||
|
||||
Background Fill
|
||||
* ff00ff ; Fill background with color
|
||||
* ? ; Remove background
|
||||
|
||||
Save File
|
||||
$ new_name.jpg ; Create a new file with name
|
||||
|
||||
Load File
|
||||
/ file_name.jpg 10 10 100 100 ; Load image into canvas, at position 10,10
|
||||
|
||||
Brush
|
||||
& 10 1 ; Size 10
|
||||
& 1 0 ; Eraser, Size 1
|
||||
& 4 1 ff0000 ; Red brush, Size 4
|
||||
& ? ; Size 1, black
|
||||
|
||||
Pointers
|
||||
> 10 0 ; Add pointer at pos
|
||||
> 10 0 ; Remove pointer at pos
|
||||
> 0 0 400 0 ; Mirror X, at 400px
|
||||
> 0 _S ; Speed is y offset
|
||||
> ? ; Remove pointers
|
||||
|
||||
Zoom
|
||||
= 75 ; Zoom factor
|
||||
= ? ; Zoom 100%
|
||||
|
||||
Guides
|
||||
| 10 10 100 100 ; Draw a guide
|
||||
| -100 ; Draw a grid at every 100px
|
||||
| ? ; Remove guides
|
||||
|
||||
Formatting
|
||||
; ; Split into multiple commands
|
||||
_ ; Variable with name
|
Loading…
x
Reference in New Issue
Block a user