Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / saturation &hue

Author
Message
aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 29th Nov 2007 02:47
Ok. So the computer gives colors 3 parameters (besides alpha).
Red
Green
and Blue

MS-Paint gives you another way to adjust a color.
Hue
Saturation
Lumination

I know lumination works by decreasing the red green and blue values, but how do the saturation and hue values work?

alus.portbb.com go there.
Quote: A book. I hate books. book is stupid. I know that I need codes but I dont know the codes -zenicanin14 the stupidest user in the world
Mr Tank
21
Years of Service
User Offline
Joined: 25th Nov 2002
Location: United Kingdom
Posted: 29th Nov 2007 15:12
It's kind of complicated. The actual luminance from a pixel, with standard gamma goes approximately as the square of the pixel value (r,g and b values)
The luminance total will be something like const1*r^2+const2*g^2+const3*b^2

If you think of a 3d space with coordinates r,g,b, then constant luminance surfaces are like ellipsoidal shells about the origin.

If you convert, using gamma, to a space where r` is proportional to the red luminance etc, then surfaces of constant luminance are r+g+b=const planes.

Imagine the line r=g=b- the line through greys. Looking in this direction from the origin, it looks kind of like a colour wheel- the angle around it is the hue, and saturation increases, for constant luminance, as you move away from the centre r=g=b. The actual working definition of hue and saturation varies i guess.

Look it up somewhere, or experiment with your paint program. Don't trust my hazy layman's rantings too much.

SUPER BADASS SPACESHIP X: WEBSITE
FORUM TOPIC

Login to post a reply

Server time is: 2024-05-17 12:43:57
Your offset time is: 2024-05-17 12:43:57