0 Members and 2 Guests are viewing this topic.
I am a proud cynic.
How does grayscale work on the non CX calcs ? More importantly how do I use it ?How many levels of grayscale does the normal NSpire support ?How does this work with the TI-Image format ?I'm asking since I'm writing a .BMP file -> TI-Image file convert for easy Lua usage.
TI-Image is always in 16-bit color format, and on the grayscale calculators it is converted automatically. Oh, and there are 15 shades of grayscale, since you wanted to know.
msg = ""function on.paint(gc) gc:drawString(msg, 10, 10, "top")endfunction on.charIn(ch) msg = msg .. ch platform.window:invalidate()end
function on.enterKey() function on.paint(gc) gc:drawString("Hello World!",0,0,"top") endend
function on.paint(gc) if hello then gc:drawString("Hello World!", 0, 0, "top") endendfunction on.enterKey() hello = true platform.window:invalidate()end
enterHasBeenPressed = false --initializes enterHasBeenPressed to be falsefunction on.paint(gc) if enterHasBeenPressed then --exicute the following code if enterHasBeenPressed is true gc:drawString("Hello World", 0, 0, "top") endendfunction on.enterKey() enterHasBeenPressed = true --Since enter has been pressed enterHasBeenPressed is now true platform.window:invalidate() --invalidates the window so when on.enter is done on.paint will be calledend