RGBW and RGBA to RGB conversion for colour presets

Archive of the non-categorized posts related to the QLC+ technical support.
Please do not create new threads here, instead, use the categories above !
Post Reply
Boxy

With 4-colour lighting fixtures I've come across a problem when creating presets for the definitions. Firstly, I'm probably reinventing the wheel here...

Example: Fixture manual says 'Color Preset 3: Red 255, Green 190, Blue 0, White 170'

Without the white, clearly orange, with the white, bright-pale orange.

The white obviously makes the fixture brighter, so how do we map these colours to RGB? 2 ideas:

1. Multiply RGB values by 2/3 and add 1 third of the white value. This looks OK but the full primary colours with no white look quite dark on screen - 255 maps to 170. This accurately shows the effect of the white brightness though. In the example above: R 227, G 183, B 57.

2. Weight the RGB values by increasing the values of channels below 255 intensity by a proportion of the white level. This effectively decreases saturation as white is turned on. This keeps the buttons looking bright in QLC+ but hides the brightness effect of the white component. Again: R 255, G 204, B 57.

The formula for 2. is

RGBx=RGB+(255-RGB)*W/3/255

The effects are demonstrated in the attachments. Dark is method 1, light is method 2.

Similar techniques could be used for other colours by weighting the RGB values of the additional colours.
Attachments
dark.gif
dark.gif (33.93 KiB) Viewed 3080 times
light.gif
light.gif (29.42 KiB) Viewed 3080 times
Boxy

Going further into this I looked at some QLC+ definitions to see where people get the colours from for RGBW fixtures.

The Clay Paky A.LEDa Wash K10 CC is a good example. The manual includes 'LEE reference' numbers which list which settings the fixture needs to approximate filters from LEE filters. Googling them gives the RGB values for each colour (do view->source).

Now, no maths function on Earth could give a transformation from the Clay Paky RGBW settings to the LEE values. They are all over the place. For some colours, the white adds to the intensity, for others it actually goes down! The QLC+ definitions seem largely orange biased so I've created a version using the LEE values. Performing a transformation on the RGBW data from Clay Paky yields horrible colours.
Attachments
modified.gif
modified.gif (309.76 KiB) Viewed 3080 times
current.gif
current.gif (51.06 KiB) Viewed 3080 times
Post Reply