
Javascript 7-segment LED experiment
body {overflow:hidden}
//Screen size globals
myWidth = 640;
myHeight = 480;
myCenterH = 320;
myCenterV = 240;
//How to draw a digit
//1 = top 2 = middle 3 = bottom 4 = topleft 5 = bottomleft 6 = topright 7 = bottomright
var digitData = [];
digitData[0] = "X.XXXXX";
digitData[1] = ".....XX";
digitData[2] = "XXX.XX.";
digitData[3] = "XXX..XX";
digitData[4] = ".X.X.XX";
digitData[5] = "XXXX..X";
digitData[6]...