Colors
Newzed
Posts: 2,503
In the TV programs, I know that 3 = green, 2 = red and 4=white.· Where can I find a complete list of the colors that Propeller can display on my TV.
I can change the text color but how do I change the background color?
Thanks
Sid
I can change the text color but how do I change the background color?
Thanks
Sid
Comments
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Life is one giant teacup ride.
The TV screen[noparse]/noparse contains a value for each "tile" in the tv screen.· The screen has (x_tiles·* y_tiles ) = 16 * 12 = 192 tiles.· Each tile then has it's own color designator value.· You have 0-3 or 4·colors for each cell.· This is specified via a Unary number (two bits).· The value in the tile then specifies essentially what becomes your· backcolor, forecolor·and two variants.· So, the big question is, what are the values required for each color?·
Well, I have yet to figure out that completely myself, but I know this much,·the code in Graphics_palllette seems to have the·most comprehensive coverage of color I've seen yet, and it initializes the color[noparse]/noparse with 64 color values ranging from
$03020507....$0302050C (inc by $1)
·$07020504
$1B1A0507, $2B1A0507, $3B1A0507.... $FBFA0507 (inc. by $1000000)
$0D0C0507, $1D1C0507 .... $FDFC0507 (inc by $10000000)
$080E0507, $180E0507 .... $F80E0507 (inc by $10000000)
Maybe someone can chime in about how these numbers map to their 4 color values.· Of even more use would be some infomation as to how it was figured out in the first place?· I've been meaning to sit down and figure out which colors the various value ranges map to (and if there are other legitimit colors in between those values) but I haven't had the time yet and I'm not looking foward to the amount of time I think it will take to reverse engine the color values.· Hopefully this will give others a place to start.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store