I am currently trying to make a web port of the linux terminal game, greed. If you have ever played, each number has it's own unique color, an I need to replicate this in html.
I have tried to put them into <span style="color:#FF0000">
tags, though this
got too laggy to run on my computer with any decent speed, using chrome.
drawGrid = function(){
drawer.innerHTML = ""
for(var i in board){
for(var o in board[i]){
drawer.innerHTML+="<span class='b"+board[i][o]+"'>"+board[i][o]+"</span>"
}
drawer.innerHTML+="<br>"
}}
board is a 2d array with numbers,drawer is the div which i am writing to and in a style tag including to style the numbers properly
Any help?