summaryrefslogtreecommitdiff
path: root/js/lex.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lex.js')
-rw-r--r--js/lex.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/lex.js b/js/lex.js
index d61f561..a35829f 100644
--- a/js/lex.js
+++ b/js/lex.js
@@ -2,8 +2,8 @@ direction = [1,0]
function Lex (x,y) {
if (typeof x == "number") {
- this.x = x
this.y = y
+ this.x = x
this.span = document.createElement("span")
}
else {
@@ -53,6 +53,7 @@ Lex.prototype.erase = function (lex){
Lex.prototype.fill = function(fg,bg){
this.fg = fg
this.bg = bg
+ this.opacity = 1
this.build()
}
Lex.prototype.eq = function(lex){
@@ -62,6 +63,7 @@ Lex.prototype.clear = function(){
this.bg = 1
this.fg = 0
this.char = " "
+ this.opacity = 0
this.build()
}
Lex.prototype.isClear = function(){