summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-05-10 22:28:28 -0400
committerJules Laplace <jules@okfoc.us>2016-05-10 22:28:28 -0400
commit63e1ae4898aeac4073f887bb1db9156286b08c63 (patch)
tree1c1ee8ac3167f9791e5300b4ad64e48133a618d7 /js
parentc93aad173849e9a4c4d63911036a454887cef716 (diff)
fix stars undo
Diffstat (limited to 'js')
-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()