From f650127c109fb65a589388cefb51eb990b151612 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 6 May 2015 01:57:11 -0400 Subject: experimental palette --- js/lex.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'js/lex.js') diff --git a/js/lex.js b/js/lex.js index 6a3127a..c68d0e0 100644 --- a/js/lex.js +++ b/js/lex.js @@ -78,10 +78,11 @@ Lex.prototype.erase = function (){ this.opacity = 1 this.build() } -Lex.prototype.fill = function(fg, bg){ - this.fg = fg - this.bg = bg - this.opacity = 1 +Lex.prototype.fill = function(lex){ + this.fg = lex.fg + this.bg = lex.bg + this.char = lex.char + this.opacity = lex.opacity this.build() } Lex.prototype.eq = function(lex){ -- cgit v1.2.3-70-g09d2