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 / Questions about colors

Author
Message
RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 2nd Feb 2006 10:30
how can i change the text color ?
how can i change the background color ?

im making a simple text program and i want to know how to play
with the colors
thanks ...
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 2nd Feb 2006 12:06
ink FOREGROUNDCOLOR,BACKGROUNDCOLOR

Both colour values can be single numbers - or you can use rgb() to put in a red, green, blue value.

For example...

ink rgb(255,0,0),0

will give you red ink, with a black (0) background.
RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 2nd Feb 2006 12:42
thanks , ive managed to control the text color , but the background color stay black no matter what , ive puted rgb values for both
foregroundcolor and backgroundcolor , but the background is still black , any idea why ?
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 2nd Feb 2006 13:00
Checking up, in DBPro at least theres a command called SET TEXT OPAQUE that stops text from being 'see through' and gives your text the background that you set in ink.

Which I didn't know about, I've learned something new myself
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 2nd Feb 2006 21:52
The "set text opaque" command is good for printing text in the same place over and over without having to clear the screen or use other methods to blank out the previously printed text (even with just a black background).


RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 2nd Feb 2006 22:27
i dont want the background of the text
i want the background of the screen
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 2nd Feb 2006 22:45
color backdrop

Insanity is just a state of mind
Tinkergirl
21
Years of Service
User Offline
Joined: 1st Jul 2003
Location: United Kingdom
Posted: 2nd Feb 2006 22:50
Or you could just use the box command.

box 0,0,screen width(),screen height()

That'll fill the whole screen with the colour you've set in ink.
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 3rd Feb 2006 02:30 Edited at: 3rd Feb 2006 02:30


Hippie Dude
19
Years of Service
User Offline
Joined: 6th Feb 2005
Location: California, United States
Posted: 3rd Feb 2006 03:25
just use the BOX command to fill up the screen. Make sure you put this command before any writing or else it will cover it!

Mysteries Surround You
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 3rd Feb 2006 04:14
You can also clear the screen with a rgb value.




RisTar_sn
19
Years of Service
User Offline
Joined: 15th Jan 2005
Location:
Posted: 4th Feb 2006 12:17
Thanks all the only command that worked like i do is the clear screen with rgb , thanks for the comments guys

Login to post a reply

Server time is: 2024-11-27 05:38:14
Your offset time is: 2024-11-27 05:38:14