VGA Colors
johnfl68
Posts: 72
Does anyone have a better explanation of VGA color tables with the prop (VGA tile driver 1024x768)?
I see some things say that the long strings are for 4 color pallets - but why the other 2 colors if it is only Foreground and Background?
I feel like I am missing something, but not really finding any good explanation of how colors work. I understand the 64 possible colors part.
Any help would be appreciated!
Thanks!
John
I see some things say that the long strings are for 4 color pallets - but why the other 2 colors if it is only Foreground and Background?
I feel like I am missing something, but not really finding any good explanation of how colors work. I understand the 64 possible colors part.
Any help would be appreciated!
Thanks!
John
Comments
http://www.rayslogic.com/propeller/Programming/Colors.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 4/2/2008 8:55:02 PM GMT
John
I am working with the 1024x768 Tile Driver Demo.
The background is blue(even though the code says lt grey on dk grey). If I try to change in the color table to white on black, the screen fills with the ! symbol?
The following code:
Color 0 is Red, 1 is Green with the Underscore box effect, 2 is Cyan. In the color table, I would assume that 3 would be a Grey box, but the text comes out messed up, anyone know why this doesn't work?
Also, the colors in the color table don't seem to line up, in the manner I would assume:
Red should be 1, but I get Red using a value of 5
Using a value of 1 gives me Black
Green should be 2, but I get Green with a value of 6
Using a value of 2 also gives me Black
Blue should be 3, but I get Blue using a value of 0
Using a value of 3 also gives me Black
White should be 4, but I can not get white to show up
Using a value of 4 also gives me Black
What am I missing?????
What I need to do is fairly simple, I need to use the colors White, Red, Blue, Green, Cyan, Magenta, Yellow, and Black. This falls in to the 8 max foreground/background colors. I need to draw some boxes on the screen. I am using the boxFill PRI, is this part of the problem, is it using the box colors and not the foreground/background colors?
I really only need one box color - at this time wanted to use Grey - but this messes up the characters in the box.
Any help would be greatly appreciated!
Thanks!
John
http://www.rayslogic.com/propeller/Programming/Colors.htm
Also, in several of the Parallax codes, the space character is mistakenly given $200, when it should be $220.· So, when you clear the screen, you may get a screenfull of a strange character instead of a blank screen...
Thanks for the help Rayman!
John