diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-21 13:50:30 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-21 13:50:30 -0500 |
| commit | e46886c6382bd2517eca07826e9a2cf6cb353962 (patch) | |
| tree | 73ac7463f82525a568d6baff09473179733f3289 /js/lex.js | |
| parent | fea42b1513e321b6c397c914327a9a4a7d96e331 (diff) | |
right/left bracket to resize brush
Diffstat (limited to 'js/lex.js')
| -rw-r--r-- | js/lex.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |
