clacker


Group: Members
Posts: 570
Joined: June 2004 |
 |
Posted: Jan. 10 2006,18:41 |
 |
mikshaw, I use other numbers than the named ones and it still works. I don't know how many entries I can make into the color table, but it looks like color numbers below 1001 work but funny things happen after 1024. Here is my example (using your orange):
Code Sample | -- set up four colors -- color table goes up to "small number" according to docs
temp = Color:set_color(17,255,165,0) temp = Color:set_color(124,125,125,256) temp = Color:set_color(254,25,25,125) temp = Color:set_color(1001,25,125,125)
w = Window{320,200,"Test Window"} w.color = 17
name = Input{76,10,210,25,"Name:"} name.color = 124
myBox = Box{20,40,100,100} myBox.color = 254 myBox.box = Boxtype.flat
myBox = Box{140,40,60,60} myBox.color = 1001 myBox.box = Boxtype.flat
w:end_layout() w:show() |
|