Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Simple Color Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TheLastFall




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Flikerator




PostPosted: Sat Oct 14, 2006 6:22 pm   Post subject: (No subject)

code:

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




PostPosted: Sat Oct 14, 2006 6:24 pm   Post subject: (No subject)

Thanks this is much appreciated.
Flikerator




PostPosted: Sat Oct 14, 2006 6:32 pm   Post subject: (No subject)

No problem.
Tony




PostPosted: Sat Oct 14, 2006 6:40 pm   Post subject: (No subject)

it makes so much more sense to use
code:

Draw.FillBox(100,100,200,200,blue)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Flikerator




PostPosted: Sat Oct 14, 2006 6:44 pm   Post subject: (No subject)

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

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


More sense then what Confused
Tony




PostPosted: Sat Oct 14, 2006 7:47 pm   Post subject: (No 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: