From c2d83e9195d6ae00836226d039a594d7e917908c Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Fri, 22 May 2015 18:48:49 +0200 Subject: unicode functions and ascii brushes --- js/lex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/lex.js') diff --git a/js/lex.js b/js/lex.js index 5fdf707..e491fe0 100644 --- a/js/lex.js +++ b/js/lex.js @@ -17,8 +17,8 @@ Lex.prototype.build = function(){ this.span.innerHTML = this.html() } Lex.prototype.css = function(){ - if (this.opacity == 0) return "transparent f" + letters[mod(this.fg,16)] - return "f" + letters[mod(this.fg,16)] + "b" + letters[mod(this.bg,16)] + if (this.opacity == 0) return "transparent f" + color_alphabet[mod(this.fg,16)] + return "f" + color_alphabet[mod(this.fg,16)] + "b" + color_alphabet[mod(this.bg,16)] } Lex.prototype.html = function(){ return this.char == " " ? " " : this.char || " " -- cgit v1.2.3-70-g09d2