From 63e1ae4898aeac4073f887bb1db9156286b08c63 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 10 May 2016 22:28:28 -0400 Subject: fix stars undo --- js/ui/nopaint.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'js/ui/nopaint.js') diff --git a/js/ui/nopaint.js b/js/ui/nopaint.js index e3fb03c..3768f39 100644 --- a/js/ui/nopaint.js +++ b/js/ui/nopaint.js @@ -304,6 +304,7 @@ var nopaint = (function(){ paint: function(t){ if (Math.random() < 0.5) { var lex = canvas.get(this.p.x, this.p.y) + undo.save_lex(lex.x, lex.y, lex) lex.fg = rand_hue() lex.bg = colors.black lex.char = choice(this.chars) @@ -350,15 +351,15 @@ var nopaint = (function(){ }, }) - nopaint.add_tool( new SolidBrush({ weight: 3 }) ) - nopaint.add_tool( new EraseBrush({ weight: 5 }) ) - nopaint.add_tool( new RandomBrush({ weight: 4 }) ) - nopaint.add_tool( new HueBrush({ weight: 6 }) ) - nopaint.add_tool( new LetterBrush({ weight: 4 }) ) - nopaint.add_tool( new RandomLetterBrush({ weight: 14 }) ) - nopaint.add_tool( new CloneBrush({ weight: 8 }) ) - nopaint.add_tool( new FillTool({ weight: 4 }) ) - nopaint.add_tool( new FillLetterTool({ weight: 6 }) ) +// nopaint.add_tool( new SolidBrush({ weight: 3 }) ) +// nopaint.add_tool( new EraseBrush({ weight: 5 }) ) +// nopaint.add_tool( new RandomBrush({ weight: 4 }) ) +// nopaint.add_tool( new HueBrush({ weight: 6 }) ) +// nopaint.add_tool( new LetterBrush({ weight: 4 }) ) +// nopaint.add_tool( new RandomLetterBrush({ weight: 14 }) ) +// nopaint.add_tool( new CloneBrush({ weight: 8 }) ) +// nopaint.add_tool( new FillTool({ weight: 4 }) ) +// nopaint.add_tool( new FillLetterTool({ weight: 6 }) ) nopaint.add_tool( new StarsTool({ weight: 6 }) ) nopaint.regenerate_weights() -- cgit v1.2.3-70-g09d2