summaryrefslogtreecommitdiff
path: root/js/matrix.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-05-05 01:29:02 -0400
committerJules Laplace <jules@okfoc.us>2015-05-05 01:29:02 -0400
commitfbd3a309bac74fa5b7384f536590f1f2a9d69f72 (patch)
tree10a964d3c7e698687b5844cddf3185847c521d78 /js/matrix.js
parent41c77a3357596c566d5b89283980e8d06f84c778 (diff)
change erase mode color
Diffstat (limited to 'js/matrix.js')
-rw-r--r--js/matrix.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/matrix.js b/js/matrix.js
index b1d80f6..59bad86 100644
--- a/js/matrix.js
+++ b/js/matrix.js
@@ -39,7 +39,7 @@ Matrix.prototype.assign = function (mat) {
this.demolish()
this.w = mat.w
this.h = mat.h
- this.f = function(){}
+// this.f = function(){}
this.initialize(function(x,y){
var el = mat.getCell(x,y).clone()
el.build()
@@ -83,6 +83,9 @@ Matrix.prototype.focusLex = function(y,x){
Matrix.prototype.clear = function(){
this.forEach(function(lex,x,y){ lex.clear() })
}
+Matrix.prototype.erase = function(){
+ this.forEach(function(lex,x,y){ lex.erase() })
+}
Matrix.prototype.fill = function(fg, bg){
this.fg = fg
this.bg = bg