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.

DarkBASIC Professional Discussion / want to add color to text.

Author
Message
sinkler20
23
Years of Service
User Offline
Joined: 12th Mar 2003
Location: United States
Posted: 22nd Jun 2003 06:16
hopefully this is a simple question.
if I at some point in the program change the text to red, how would I do that?
I'm learning db and just want to put a negative number as the color red.
thanks
philippians 4:13
andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 22nd Jun 2003 06:18
Ink foreground,background

Example: (red text)
Ink RGB(255,0,0),0

"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!
sinkler20
23
Years of Service
User Offline
Joined: 12th Mar 2003
Location: United States
Posted: 22nd Jun 2003 06:22
cool thanks

philippians 4:13
sinkler20
23
Years of Service
User Offline
Joined: 12th Mar 2003
Location: United States
Posted: 22nd Jun 2003 06:34
how about making the background a different color?

philippians 4:13
andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 22nd Jun 2003 06:39
The background parameter is the background of the text. Use set text opaque, then set the background parameter with RGB(red,green,blue).

"All programmers are playwrites and all computers are lousy actors" -Anon
Click Here!!!

Login to post a reply

Server time is: 2026-07-11 14:56:38
Your offset time is: 2026-07-11 14:56:38