PDA

View Full Version : querying canvas in mel


pk_pk
09-09-2005, 12:14 AM
hi,

i am querying a canvas for its hsv color but getting incorrect values. if i set a canvas' Hue value to "0", on query, 360 is returned. however, if the canvas' value is set to "0.0001", i do get the same value back. is this a bug? is there a work around. i think this is a wrapping issue but i would like to be able to use both 360 and 0 as valid Hue inputs?

thanks in advance

bigdovii
09-14-2005, 02:37 PM
it is often stated that the hue value goes from 0-360(cuz it in degrees) but 0-360 is 361degrees(go on count em) so like on an analogue clock (where 12 is the begining and end), 360 is the begining and end, so there is no zero, just 1-360. Just for interests sake why do you need to tell the diffence between a 1 degree change in colour temperature of red?

pk_pk
09-20-2005, 07:30 PM
thank you for the reply. i realize 0 and 360 represent the same space, but i need the query to return 0 because i'm building a range from it. so if i get back a 360 from the canvas query, then my range will be 360-360 when what i really want is 0-360.

and i cant assume a query that returns 360 is 0 because 360 is also a valid input for the range i'm creating.

CGTalk Moderation
09-20-2005, 07:30 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.