diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-05-05 01:29:02 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-05-05 01:29:02 -0400 |
| commit | fbd3a309bac74fa5b7384f536590f1f2a9d69f72 (patch) | |
| tree | 10a964d3c7e698687b5844cddf3185847c521d78 /js/matrix.js | |
| parent | 41c77a3357596c566d5b89283980e8d06f84c778 (diff) | |
change erase mode color
Diffstat (limited to 'js/matrix.js')
| -rw-r--r-- | js/matrix.js | 5 |
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 |
