so, i am trying my luck again, this time in the jitter forums.
i need to convert sRGB (0 1) values to HCL values, but i aready fail at the rgb to xyz conversion.
the formulas i can find on the net are either java or some pseudo code, which i dont fully understand. do i need all the scaling stuff or do i need only the matrix transform?
from what most examples are telling me, rgb to xyz conversion would look about that:
vexpr (($f1>0.04045)*(srqt((($f1+0.055)/1.055)\\,2.4)) + ($f1
unpack 0. 0. 0.
expr ($f1*0.4124)+($f2*0.3576)+($f3*0.1805) X
expr ($f1*0.2126)+($f2*0.7152)+($f3*0.0722) Y
expr ($f1*0.0193)+($f2*0.1192)+($f3*0.9505) Z
there should be a working example for srgb-xyz-hcl in the processing language, maybe some of you would be so kind and explain the code so that it can be written in simple max. my current OSX doesnt not allow to run me processing due to the java version.