eggbeast 3673 Posted November 17, 2012 (edited) 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 November 17, 2012 by eggbeast Share this post Link to post Share on other sites
Horner 13 Posted November 18, 2012 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
eggbeast 3673 Posted November 18, 2012 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