Progress on brushes and new mirror brush synthax.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user