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

Username:   Password: 
 RegisterRegister   
 i don't understand RGB
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DarkHelmet




PostPosted: Wed Apr 16, 2003 4:02 pm   Post subject: i don't understand RGB

i know someone's probably already posted about this, but could somebody please explain to me in a bit more detail? The turing reference guide is a peice of junk, and doesn't help much. I get the idea about the red, green and blue aspects of it, but i don't know how to use it properly.
Sponsor
Sponsor
Sponsor
sponsor
Catalyst




PostPosted: Wed Apr 16, 2003 4:09 pm   Post subject: (No subject)

It is a complicated topic, its not very intuitive for judiging colors, you reallly dont usually think its 60% red, etc.

They are best for making shades

such as:

code:

var clr : int

for i : 1 .. 255
    clr := RGB.AddColor (0, 0, i / 255)
end for

for i : 1 .. 255
    drawline (i, 0, i, maxy, i + 255)
end for



This creates new colors past the usually 255 max that shade from blue to black u can do gradients between colors altho its complicated, i have made a couple of procedures that will shade between any two colors for
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  [ 2 Posts ]
Jump to:   


Style:  
Search: