Page 1 of 1

brightness parameter in background directive

Posted: Tue Jan 20, 2009 7:49 am
by RR
Hi,

I find that the b adjustment in the background directive does not seem to work. I tried with a number of hue's and saturations and it seems to only take a brightness value of 1 independent of the value I put it.

For example, the following

background{hue 24 sat 1 b 0.4} conforms to a maroon-purple color. While what appears as a background is equivalent to {hue 24 sat 1 b 1}

The color combination does seem to work within shapes though.

Am I using it wrong or is it some installation problem (I am using on a Vista) or ...

Thanks,

RR

Posted: Tue Jan 20, 2009 7:55 am
by RR
oops, I think I figured it out. It is relative to 1. Hence I need to put a b -6 to get a value of b 0.4

Is this because the base values are hue 0 sat 0 b 1?

RR

Posted: Tue Jan 20, 2009 12:39 pm
by MtnViewJohn
Yes, the base hsb values for shapes is (0,0,0) and for the background is (0,0,1).