-
Write-on and RGB/HSL manipulation
Greetings all. I think it may be the first time I’ve posted to this forum.
I’ve got a simple expression that seems to work as I want it to – but I’m scratching my head on a number it seems to be generating… and I’d like to understand why…
File attached:
9294_mdawriteontest01.aep.zipSummary of file:
write-on effect with the ‘paint time property’ set to colour.
Colour is converted from rgb to hsl
A slider input (0 to 360 divied by 360) is added to the hue value in the hsl array.
Colour is converted from hsl to rgb.The slider value is keyframed 0 to 360 over time to give colour variation at the start of the stroke. The starting colour is pure red (255,0,0).
You’ll see in the file I have a text debugging layer with the same code in it apart from the final hsl to rgb conversion.
What’s confusing me is the text debug array shows the first element value going from 0 to 2 – not 0 to 1 as I would expect.
Why?
(I have a feeling it will be something totally obvious 😉