Progress on brushes and new mirror brush synthax.
This commit is contained in:
parent
0b3842f022
commit
2afe59883d
17
README.md
17
README.md
@ -27,19 +27,14 @@ $ new_name.jpg ; Create a new file with name
|
||||
/ 3 ; Load history id
|
||||
```
|
||||
|
||||
##Brush
|
||||
```
|
||||
& 10 ; Size 10
|
||||
& -4 ; Eraser, Size 4
|
||||
& 4 #ff0000 ; Red brush, Size 4
|
||||
& ? ; Size 1, black
|
||||
```
|
||||
|
||||
##Pointers
|
||||
##Brush(Pointers)
|
||||
```
|
||||
> 10 ; Size 10
|
||||
> -4 ; Eraser, Size 4
|
||||
> 10,0 ; Add pointer at pos
|
||||
> 0,0 400,0 ; Mirror X, at 400px
|
||||
> ? ; Remove pointers
|
||||
> -400,0 ; Add mirror pointer, at 400x
|
||||
> 4 #ff0000 ; Red brush, Size 4
|
||||
> ? ; Remove last pointer
|
||||
```
|
||||
|
||||
##Guides
|
||||
|
@ -1,10 +1,27 @@
|
||||
function Brush()
|
||||
{
|
||||
Module.call(this);
|
||||
|
||||
this.position = new Position();
|
||||
this.is_drawing = false;
|
||||
this.size = 1;
|
||||
this.opacity = 1;
|
||||
|
||||
// Module
|
||||
|
||||
this.active = function(cmd)
|
||||
{
|
||||
if(cmd.position()){
|
||||
var pointer = new Pointer(cmd.position());
|
||||
this.add_pointer(pointer);
|
||||
}
|
||||
}
|
||||
|
||||
this.passive = function(cmd)
|
||||
{
|
||||
console.log("Nothing to do.");
|
||||
}
|
||||
|
||||
// Commander
|
||||
|
||||
this.settings = function(p)
|
||||
|
Loading…
x
Reference in New Issue
Block a user