From 7375bd0ca48a6900bb0accc33192425024311b33 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 11 May 2016 16:07:44 -0400 Subject: get colors from currently selected palette --- js/ui/nopaint.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'js/ui/nopaint.js') diff --git a/js/ui/nopaint.js b/js/ui/nopaint.js index da6a74b..5ca439b 100644 --- a/js/ui/nopaint.js +++ b/js/ui/nopaint.js @@ -279,11 +279,10 @@ var nopaint = (function(){ var LetterBrush = SolidBrush.extend({ type: "letter", - chars: unicode.block('Basic Latin', 32), recolor: function(){ this.fg = rand_hue() this.bg = rand_hue() - this.char = choice(this.chars) + this.char = choice( unicode.block(letters.charset, 32) ) }, }) @@ -299,14 +298,14 @@ var nopaint = (function(){ this.bg = n } if (Math.random() < 0.7) { - this.char = choice(this.chars) + this.char = choice( unicode.block(letters.charset, 32) ) } this.regenerate() this.__iterate() }, update: function(){ if (Math.random() < 0.3) { - this.char = choice(this.chars) + this.char = choice( unicode.block(letters.charset, 32) ) } this.regenerate() }, @@ -406,11 +405,10 @@ var nopaint = (function(){ var FillLetterTool = FillTool.extend({ type: "fill-letter", rate: 25, - chars: unicode.block('Basic Latin', 32), recolor: function(){ this.fg = randint(16) this.bg = randint(16) - this.char = choice(this.chars) + this.char = choice( unicode.block(letters.charset, 32) ) this.opacity = 1 }, }) -- cgit v1.2.3-70-g09d2