From e46886c6382bd2517eca07826e9a2cf6cb353962 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 21 Nov 2014 13:50:30 -0500 Subject: right/left bracket to resize brush --- js/lex.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'js/lex.js') diff --git a/js/lex.js b/js/lex.js index 39a47cd..ed4679d 100644 --- a/js/lex.js +++ b/js/lex.js @@ -31,12 +31,19 @@ Lex.prototype.irc = function(){ } } Lex.prototype.clone = function (lex){ - if (! erasing && lex.isClear()) return + if (lex.isClear()) return this.fg = lex.fg this.bg = lex.bg this.char = lex.char this.build() } +Lex.prototype.erase = function (lex){ + if (lex.isClear()) return + this.fg = colors.white + this.bg = colors.black + this.char = " " + this.build() +} Lex.prototype.fill = function(fg,bg){ this.fg = fg this.bg = bg -- cgit v1.2.3-70-g09d2