Hue, saturation, and brightness

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
User avatar
mattsj1984
Posts: 1
Joined: Thu Oct 27, 2005 7:12 am

Hue, saturation, and brightness

Post by mattsj1984 »

I was wondering if there is a reason that having a hue of 0, saturation of 1, and brightness of 1 does not produce white. In other applications of HSB, (0,1,1) is white; in fact, (*,*,1) is white. However, in Context Free having (0,1,1) just makes a fully saturated color, and to get white the saturation must go down to 0. Have I made some mistake, or is this how it is intended to work?

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn »

You are thinking of the HSL color space. Context Free/CFDG uses the HSB (or HSV) color space. Some graphics applications use HSB and some use HSL.

aqua_scummm
Posts: 17
Joined: Sat Jun 11, 2005 5:44 am
Location: Redwood City, CA
Contact:

Post by aqua_scummm »

HSB works because the hue defines a color, based on a 360º color wheel. the brighness explains how dark or light it is. The saturation is how much the color is added to the gray. So to have white, you must be completely bright, and completely devoid of color. meaning *,0,0.
Last edited by aqua_scummm on Fri Oct 28, 2005 12:24 am, edited 1 time in total.

Guest

Post by Guest »

Thanks, I didn't realize there was a difference between the two color spaces.

aqua_scummm
Posts: 17
Joined: Sat Jun 11, 2005 5:44 am
Location: Redwood City, CA
Contact:

Post by aqua_scummm »

whoops, redundant post, didnt see the links at first :/

Post Reply