hey any idea way it only seems to choose absolute colors?
I can only choose red, blue, green, yellow, magenta, turquoise, black and white. nothing in between?
also if i assign the color to my objects material it looks full bright, while assigning the same color in the inspector is shaded?
here is it in a web player:
http://www.therottchilds.com/web.html
#pragma strict
var myColor: Texture;
private var R:int;
private var G:int;
private var B:int;
private var color:Color;
function chooseColor()
{
R = GUI.VerticalSlider(Rect (Screen.width-100, 60, 30, 100), R, 0, 255);
G = GUI.VerticalSlider(Rect (Screen.width-70, 60, 30, 100), G, 0, 255);
B = GUI.VerticalSlider(Rect (Screen.width-40, 60, 30, 100), B, 0, 255);
GUI.Label(Rect(Screen.width-100, 160,30,30),"R");
GUI.Label(Rect(Screen.width-70, 160,30,30),"G");
GUI.Label(Rect(Screen.width-40, 160,30,30),"B");
color =Color(R,G,B,1);
GUI.color=color;
print(color);
GUI.DrawTexture(new Rect(Screen.width-100, 30, 75, 20), myColor);
}
function OnGUI ()
{
chooseColor();
}