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
|
/ 3 ; Load history id
|
||||||
```
|
```
|
||||||
|
|
||||||
##Brush
|
##Brush(Pointers)
|
||||||
```
|
|
||||||
& 10 ; Size 10
|
|
||||||
& -4 ; Eraser, Size 4
|
|
||||||
& 4 #ff0000 ; Red brush, Size 4
|
|
||||||
& ? ; Size 1, black
|
|
||||||
```
|
|
||||||
|
|
||||||
##Pointers
|
|
||||||
```
|
```
|
||||||
|
> 10 ; Size 10
|
||||||
|
> -4 ; Eraser, Size 4
|
||||||
> 10,0 ; Add pointer at pos
|
> 10,0 ; Add pointer at pos
|
||||||
> 0,0 400,0 ; Mirror X, at 400px
|
> -400,0 ; Add mirror pointer, at 400x
|
||||||
> ? ; Remove pointers
|
> 4 #ff0000 ; Red brush, Size 4
|
||||||
|
> ? ; Remove last pointer
|
||||||
```
|
```
|
||||||
|
|
||||||
##Guides
|
##Guides
|
||||||
|
@ -1,10 +1,27 @@
|
|||||||
function Brush()
|
function Brush()
|
||||||
{
|
{
|
||||||
|
Module.call(this);
|
||||||
|
|
||||||
this.position = new Position();
|
this.position = new Position();
|
||||||
this.is_drawing = false;
|
this.is_drawing = false;
|
||||||
this.size = 1;
|
this.size = 1;
|
||||||
this.opacity = 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
|
// Commander
|
||||||
|
|
||||||
this.settings = function(p)
|
this.settings = function(p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user