Page 1 of 1

Blocky event for RGB color setting

Posted: Sunday 29 May 2016 22:03
by yanic
Hello,

I just created my first event in blocky!

IF my nest thermostat comes on, I turned on a bulb - I was impressed!

However, it happens to be an RGB bulb and I was hoping to set the bulb color to red or blue depending on the status but in blocky, I cannot set the bulb to "#3289c7" for example. I tried to set it to that as a string but it didnt work.

I'd one day like to do this with outside temperature perhaps.

Re: Blocky event for RGB color setting

Posted: Monday 30 May 2016 15:22
by yanic
Image

I got it working like this, the scene has the ability to set the colour. However I am not sure of the difference between turning a scene on or activating it. Either way I did both

Re: Blocky event for RGB color setting

Posted: Saturday 11 June 2016 7:34
by kathleencjustice
RGB color space or RGB color system, constructs all the colors from the combination of the Red, Green and Blue colors. The red, green and blue use 8 bits each, which have integer values from 0 to 255. This makes 256*256*256=16777216 possible colors. RGB ≡ Red, Green, Blue. Each pixel in the LCD monitor displays colors this way, by combination of red, green and blue LEDs (light emitting diodes). When the red pixel is set to 0, the LED is turned off. When the red pixel is set to 255, the LED is turned fully on. Any value between them sets the LED to partial light emission.