Jump to content
Sign in to follow this  
eggbeast

color text [] colour chart

Recommended Posts

hi have searched around and cannot find this so posting question...

I am looking for a colour guide for the text colours used in dialogs.

http://community.bistudio.com/wiki/DialogControls-CheckBox

this page says:

colorText | color array | color of the control text

and gives example

colorText[] = {1, 0, 0, 1};

http://community.bistudio.com/wiki/Dialog_Control

this gives the following:

color | HTML color

so I googled html color and it's all in RGB,

example

http://html-color-codes.info/

I tried making a blue color here and it returns RGB color code: 14,37,244

I'm assuming that BIS colours are RGB as a representative % between 0 and 1 with the last figure being alpha (transparency) - (R,G,B,A)

the wiki on web colours is:

http://en.wikipedia.org/wiki/Web_colors

so what do the four figures in the BIS format relate to?

what values for this

colorText[] = {1, 0, 0, 1};

would give a nice bold blue?

colorText[] = {0, 0, 1, 1}; ?? this?

Edited by eggbeast

Share this post


Link to post
Share on other sites

It is indeed RGBA. (Red Green Blue Alpha). On a 0-1 scale, whenever I want to get a color I just take each number in a regular RGB value and divide by 255. So say you put your first example ({1,0,0,1}), You would get a solid, bright red. However if you did your second example ({0,0,1,1}), you would get a bright, solid blue color. Hope this helped :)

Share this post


Link to post
Share on other sites

ah divide by 255 - makes total sense thanks!

was wondering how to make it a value between 0 and 1 - got it !

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×