summaryrefslogtreecommitdiff
path: root/js/lex.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2015-05-01 02:14:59 -0400
committerJulie Lala <jules@okfoc.us>2015-05-01 02:14:59 -0400
commit41c77a3357596c566d5b89283980e8d06f84c778 (patch)
tree7f6c54c0c08eafbd097c12000f6b5453b86e18fb /js/lex.js
parent8b83fb2bafcf11b1981535f6dbc364db15153d87 (diff)
save custom brushes
Diffstat (limited to 'js/lex.js')
-rw-r--r--js/lex.js7
1 files changed, 3 insertions, 4 deletions
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 (){