Computer Science Canada

Simple Color Help

Author:  TheLastFall [ Sat Oct 14, 2006 6:04 pm ]
Post subject:  Simple Color Help

I just need some simple color help. I need to know what 0 - 255 is, I know its a really stupid question but I have no clue. All I know is the 0 is white, 42 is orange, 103 is a light blue and 255 is black. All I need to know it what 0 to 255, I'm pretty sure people will post replys to how stupid I am, just so you know I already know how stupid I am Hit Wall . I know there is a code that will tell me, just I have no clue how to find it. Help would be appreciated.

Author:  Flikerator [ Sat Oct 14, 2006 6:22 pm ]
Post subject: 

code:

for i : 1 .. 255
    color (i)
    put "[", i:3, "]" ..
end for

Author:  TheLastFall [ Sat Oct 14, 2006 6:24 pm ]
Post subject: 

Thanks this is much appreciated.

Author:  Flikerator [ Sat Oct 14, 2006 6:32 pm ]
Post subject: 

No problem.

Author:  Tony [ Sat Oct 14, 2006 6:40 pm ]
Post subject: 

it makes so much more sense to use
code:

Draw.FillBox(100,100,200,200,blue)

Author:  Flikerator [ Sat Oct 14, 2006 6:44 pm ]
Post subject: 

Tony wrote:
it makes so much more sense to use
code:

Draw.FillBox(100,100,200,200,blue)


More sense then what Confused

Author:  Tony [ Sat Oct 14, 2006 7:47 pm ]
Post subject: 

using predefined constants: red, blue, white, black, etc to describe colours, rather than an obscure shade #123.

The only good use I found for the numbered colours was the grey scale found around the #30. Otherwise you might as well just load images or use the RGB module to get the shades you want.


: