From 14dac548611ee993b80f1e1f8a041a0eb8ce93b6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 12 May 2016 00:02:41 -0400 Subject: fix erase brush --- js/ui/nopaint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/ui') diff --git a/js/ui/nopaint.js b/js/ui/nopaint.js index a39a9ff..4747c6e 100644 --- a/js/ui/nopaint.js +++ b/js/ui/nopaint.js @@ -7,7 +7,6 @@ var nopaint = (function(){ } controls.no.context = function(e){ e.preventDefault() - nopaint.autoplay(true) nopaint.turbo() } @@ -415,7 +414,8 @@ var nopaint = (function(){ var EraseBrush = SolidBrush.extend({ type: "erase", - iterate: function( last_brush ){ + reset: function( last_brush ){ + this.opt.max_radius = randrange(8, 20) this.reorient( last_brush ) this.bg = random() < 0.5 ? colors.white : colors.black this.char = " " -- cgit v1.2.3-70-g09d2