General
Displaying colors based on a hue slider?
Started by prismspecs on .
Sign in or create an account to join the conversation.
Hey there,
Adding a ball bounce that acts as a hue, saturation, value 2-d grid. I'd like to have an LED or something on screen that can react and tell me what color I'm looking at. So I guess my question is how can I extract X and Y values from the ball location and use this to script the color of an object. I'm happy to do the heavy lifting on the x, y -> HSV, but how do I manipulate the color of an object in real time?
Adding a ball bounce that acts as a hue, saturation, value 2-d grid. I'd like to have an LED or something on screen that can react and tell me what color I'm looking at. So I guess my question is how can I extract X and Y values from the ball location and use this to script the color of an object. I'm happy to do the heavy lifting on the x, y -> HSV, but how do I manipulate the color of an object in real time?
Oh and is there any way to embed an image into the interface by chance?
To change the color of an object you use its related attribute as referenced in the Lemur manual - specifically for LED for example, page 100, color attribute...
So the script would be:
setattribute(LED, 'color', {integer, integer});
or
setattribute(LED, 'color', {HSV(h,s,v), HSV(h,s,v)});
(not sure about this last one, I'd have to check it out, but you get the idea)
So the script would be:
setattribute(LED, 'color', {integer, integer});
or
setattribute(LED, 'color', {HSV(h,s,v), HSV(h,s,v)});
(not sure about this last one, I'd have to check it out, but you get the idea)