diff options
| author | Julie Lala <jules@okfoc.us> | 2015-05-01 02:14:59 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2015-05-01 02:14:59 -0400 |
| commit | 41c77a3357596c566d5b89283980e8d06f84c778 (patch) | |
| tree | 7f6c54c0c08eafbd097c12000f6b5453b86e18fb /js/lex.js | |
| parent | 8b83fb2bafcf11b1981535f6dbc364db15153d87 (diff) | |
save custom brushes
Diffstat (limited to 'js/lex.js')
| -rw-r--r-- | js/lex.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 (){ |
