I need help with displaying text using the objects - TV Text and VGA text.
Siri
Posts: 220
I need help with displaying text using the objects - TV Text and VGA text.
I know how to display text but what I would like is to display "color text" that is colored letters.Individual letters to be in different colors but not changing the background color.I would like the back ground color to remain "Blue".
I am strictly a spin user and not a ASM user.
Thanks
Siri
[noparse][[/noparse]Subject Added By Moderator]
Post Edited By Moderator (Chris Savage (Parallax)) : 5/27/2008 3:53:33 PM GMT
I know how to display text but what I would like is to display "color text" that is colored letters.Individual letters to be in different colors but not changing the background color.I would like the back ground color to remain "Blue".
I am strictly a spin user and not a ASM user.
Thanks
Siri
[noparse][[/noparse]Subject Added By Moderator]
Post Edited By Moderator (Chris Savage (Parallax)) : 5/27/2008 3:53:33 PM GMT
Comments
$0C = set color (color follows)
So your text might look like this..
text.str(string($C,5,"COLOR TEXT",13))
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
Need a part? Got spare electronics? - The Electronics Exchange
Post Edited (Oldbitcollector) : 5/27/2008 4:00:33 PM GMT
The code you suggested also changes the background color.What I am looking for is to change the color of individual
letters.
Siri
(Perhaps someone will jump in)
You might take a look at the AiGeneric driver which does have
the ability to change up to 16 colors. The default color for the background is black,
but I don't see why that couldn't be changed easily.
propeller.wikispaces.com/AiGeneric
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
Need a part? Got spare electronics? - The Electronics Exchange
If you take a look at the TV_Text object you will find the colour palette definitions.....
All you need to do is set up another palette in your top level object, like this for example, a modified TV_Text_Demo :-
You use the command text.setcolors to change to your own Palette definitions.
Have fun!
Best regards,
Coley
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PropGFX Forums - The home of the Hybrid Development System and PropGFX Lite
Thank you very much.I will make my own palette as you suggested.
I was playing witgh the "setcolors" command but had no idea· that I had to make my own palette to get the color combination I really
wanted.
Thanks once again.
Siri