From b50436cb2704a27757ab193d935d770354bac811 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 25 Dec 2016 16:19:17 -0700 Subject: [PATCH] Connected eraser size --- scripts/modules/eraser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/modules/eraser.js b/scripts/modules/eraser.js index 647aa20..973ccf4 100644 --- a/scripts/modules/eraser.js +++ b/scripts/modules/eraser.js @@ -23,7 +23,7 @@ function Eraser(rune) ronin.surface.context().moveTo(this.position_prev.x,this.position_prev.y); ronin.surface.context().lineTo(position.x,position.y); ronin.surface.context().lineCap="round"; - ronin.surface.context().lineWidth = 10; + ronin.surface.context().lineWidth = this.size; ronin.surface.context().strokeStyle = new Color("#ff0000").rgba(); ronin.surface.context().stroke(); ronin.surface.context().closePath(); @@ -45,7 +45,7 @@ function Eraser(rune) this.widget_cursor = function() { - return "Eraser "+this.size; + return ". "+this.size; } // Cursor