From 41c77a3357596c566d5b89283980e8d06f84c778 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Fri, 1 May 2015 02:14:59 -0400 Subject: save custom brushes --- js/lex.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'js/lex.js') diff --git a/js/lex.js b/js/lex.js index 12976d5..fca7777 100644 --- a/js/lex.js +++ b/js/lex.js @@ -51,8 +51,7 @@ Lex.prototype.mirc = function(){ return "\x03" + (this.fg&15) + "," + (this.bg&15) + char } } -Lex.prototype.clone = function (lex){ - if (lex.opacity == 0) return +Lex.prototype.assign = function (lex){ this.fg = lex.fg this.bg = lex.bg this.char = lex.char @@ -67,9 +66,9 @@ Lex.prototype.paint = function (lex){ this.opacity = 1 this.build() } -Lex.prototype.copy = function () { +Lex.prototype.clone = function () { var lex = new Lex (0,0) - lex.clone(this) + lex.assign(this) return lex } Lex.prototype.erase = function (){ -- cgit v1.2.3-70-g09d2