Added brush size triggers with brackets

This commit is contained in:
Devine Lu Linvega
2017-01-02 16:12:36 -07:00
parent 42bb3c3e80
commit 808ba43345
4 changed files with 10 additions and 2 deletions

View File

@@ -74,6 +74,10 @@ function Brush(rune)
return this.pointers.length > 0 ? "Brush "+this.size+", "+this.pointers.length+" pointers" : "No Pointers";
}
// Commands
// this.
// Cursor

View File

@@ -20,8 +20,10 @@ function Pointer(offset = new Position(), color = new Color('000000'))
this.draw = function()
{
if(!this.position_prev){this.position_prev = this.position(); }
var position = this.position();
if(position.distance_to(this.position_prev) < 2){ return; } // Quickfix against stairs
this.distance += position.distance_to(this.position_prev);