Progress on brushes and new mirror brush synthax.

This commit is contained in:
Devine Lu Linvega
2016-11-14 13:58:44 -08:00
parent 0b3842f022
commit 2afe59883d
2 changed files with 23 additions and 11 deletions

View File

@@ -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)