Omnimaga
Calculator Community => TI Calculators => Calculator C => Topic started by: BrownyTCat on March 05, 2011, 12:29:30 am
-
I need some help with it. All attempts crashed. :-\
I also need details on the options for setPixel's "color" parameter.
All I can do is clear the screen and draw a sprite painstakingly pixel-by-pixel. I'll need a template for a sprite data like the .db and sprite (ion) of ASM.
I just want a sprite thing like
table =
10001
01010
00100
01010
10001
Would be a small "x"
-
Well, this sprite would normally be defined by:
table[25]={
1,0,0,0,1,
0,1,0,1,0,
0,0,1,0,0,
0,1,0,1,0,
1,0,0,0,1};
But, in order to help you out more, I need to know which sprite routine (if any) you are using. The latest one in bwang's (somewhat old) static library would take a different format.
Also, the color parameter is an integer from 0-15, with 0 and 1 representing black and 15 representing white.
-
Can you tell me where to obtain the lib and basic instructions? It will make drawing objects much easier....
-
Download the library here:
http://ourl.ca/4852
I think there might be documentation of it somewhere in the thread. If you have any specific questions, feel free to ask! :)
-
Are you trying to use 16 as a color parameter for setpixel?