summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/ui/nopaint.js19
1 files changed, 10 insertions, 9 deletions
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()