brightness parameter in background directive

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

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
RR
Posts: 10
Joined: Mon Jan 12, 2009 4:20 am

brightness parameter in background directive

Post 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

RR
Posts: 10
Joined: Mon Jan 12, 2009 4:20 am

Post 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

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

Post by MtnViewJohn »

Yes, the base hsb values for shapes is (0,0,0) and for the background is (0,0,1).

Post Reply