Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / string colors

Author
Message
k0shi
21
Years of Service
User Offline
Joined: 30th Dec 2002
Location: Cyberspace
Posted: 14th Mar 2003 21:38
is it possible to change the color of a word in a string but keep the rest of the string a different color?
like:
a$="hi how are you?"
print a$
and you only change the word 'hi' to blue or something?
If I could drop dead right now, I'd be the happiest man alive.
---------------------------------
.....:::<>-<K0shi>-<>:::.....
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 14th Mar 2003 22:14
sure......

ink rgb(Red,Green,Blue),0

..red green blue ..up to 255
where 0,0,0 will be black and 255,255,255 wil be white..
this is not "paint" color...its light color...then if you did not get any Light Physic cours..then dont try to set up color in your head..you wont be able..its not like...you should use ..paint shop pro..or something like that....

it will make your text ...same color as your "ink"..same thing for drawing..
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 14th Mar 2003 22:22
To change individual words just do this:



The ";" at the end of print will make the next "print" print to the same line.

You are the th person to view this signature.
Programmers don't die, they just Gosub without return....

Login to post a reply

Server time is: 2024-09-19 22:40:22
Your offset time is: 2024-09-19 22:40:22