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 / Text colors

Author
Message
Syn
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: US
Posted: 12th Oct 2003 16:31
I am new. I would like to know how to add colors to my text. And also, does anyone know of a good website with tutorials?
thank you.
Easily Confused
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 12th Oct 2003 19:48
Coloring text is very simple, the Ink command is what you need:



Note on line 7 we also set the background color to white but nothing happens, to see the background color you need an extra command Set Text Opaque



...while Set Text Transparent will turn the background colors off and allow what's behind the text show through. This is on by default.



As for tutorials this is a start:
http://developer.thegamecreators.com/?f=dbpro_tutorials

Or maybe you could nose around in the CodeBase area.

Hope this helps

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Syn
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: US
Posted: 13th Oct 2003 14:15
Great help man. Thanks.
Syn
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: US
Posted: 13th Oct 2003 14:19
One question. How do you know what numbers to use to determine a color?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 13th Oct 2003 16:28
The "numbers" are arranged in the order R,G,B
And each one ranges from 0 to 255 (0 being no colour and 255 being full colour)

Therefore, if you put in middle values, you can get weird colours, but if you put in 0,0,0 then no colour is shown for Red Green and Blue, therefore it is black
or if you put in 255,255,255 then full colour is shown for Red Green and Blue so it is shown as white.
Then, if you put, say, 0,255,0 then that shows no Red, full Green and no Blue, therefore the colour is green

Just experiment with numbers untill you find a decent colour...

Hope I Helped...

Knowladge Belongs To The People...
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th Oct 2003 22:08
All paint packages allow you to define your own colours. Even paint does.

Just open up paint, select Colors->Edit Colors->Define custom colors, then enter numbers in the RGB fields on the right of the dialog box. Play with the numbers until you get the colour that you are after.
Saikoro
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: California
Posted: 13th Oct 2003 23:00
Also in DarkEdit, you can right-click and choose to change to the color you want.
-Mathew Larribas

*Currently working on : Untitled RPG
*Working with : Smokiemcpot
*Percent done: .5%

Login to post a reply

Server time is: 2024-11-25 13:39:53
Your offset time is: 2024-11-25 13:39:53