Programming Leftovers
-
ZCAM-js - A ZCAM implementation in JavaScript | Timj’s bits and tests
Earlier this year I had to investigate perception of colour attributes for some of my projects. There exists a long history of colour models that try to approximate perception, each with its own shortcomings and complexities. For a decent modern colour space suitable for image processing and with accompanying C code, OkLab can be recommended (based on CAM16 and to some extend IPT).
[...]
And it supports back transforms into XYZ/sRGB/etc colour spaces (while inverting the white point adaption if needed) from three of the ZCAM colour appearance model parameters: one of lightness Jz or brightness Qz, one of chroma Cz or saturation Sz or colourfulness Mz or vividness Vz or whiteness Wz or blackness Kz, and one of hue angle hz or hue composition Hz.
Also, the code now contains functions to find the chroma & lightness cusps for a given hue and the chroma maximum for a given hue and brightness within a gamut, needed for gamut clipping.
-
Hours left to donate to The Perl and Raku Foundation in the US 2022 tax yer | dean [blogs.perl.org]
There are still a few hours left to donate to The Perl Foundation in the US 2022 tax year. Please support the great work the foundation does to support Perl and Raku
-
PSA: Changing your b.p.o password is recommended | Meta [blogs.perl.org]
HTTPS support on blogs.perl.org, announced last month, has now undergone some additional small improvements to plug the previously still theoretically possible exposure of session cookies in unencrypted requests.
As such, now is a good time to update your blogs.perl.org password to ensure you are not using credentials which may have previously been passively collected on an open network or the like.