
-----------------------------------
DarkHelmet
Wed Apr 16, 2003 4:02 pm

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.

-----------------------------------
Catalyst
Wed Apr 16, 2003 4:09 pm


-----------------------------------
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:


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
