diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-05-12 00:02:41 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-05-12 00:02:41 -0400 |
| commit | 14dac548611ee993b80f1e1f8a041a0eb8ce93b6 (patch) | |
| tree | 44c6be99cc1f37305c8744ec26259876f6c993ab /js/ui | |
| parent | b06d7c366ec47cd6d42a2fb10088ec9c0485ebf2 (diff) | |
fix erase brush
Diffstat (limited to 'js/ui')
| -rw-r--r-- | js/ui/nopaint.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 = " " |
