The book you mention seems to cover similar ground: http://www.yorku.ca/eye/toc.htm
I had some fun modeling the color space in 3d on codepen: https://codepen.io/torleifw/pen/jOwjPxp
(or a more boring slider option here: https://codepen.io/torleifw/pen/OJgdyPJ)
One of latest papers I've read recommended using a matrix to transform color spaces, which i've also done a codepen for.
Interestingly the opponent process mirrors the LAB color space, which is soon going to be available in Safari. This is pretty cool and can enable developers to color coordinate easier.
I'm going to give the webpage you linked a good read, looks very interesting.
I have had some success manually using Photoshop to generate a reduced color space image to only 5 distinct colors (probably optimally chosen by the algorithm) and then remapping those 5 colors to 5 the 5 colors I actually have. There must be better ways
[1] https://github.com/KaliedaRik/Scrawl-canvas/blob/master/sour...
I finally managed to complete the work last week and I'm quite happy with the results. Using the library people can set the colors of graphical objects or gradients using any CSS color space string (RGB, HSL, HWB, LAB, LCH) and the color should render as expected. The reduce-noise filter uses LAB internally to calculate color distances, but in the end I compromised and used euler distances for the algorithm rather than one of the more modern algorithms.
Work is still on a branch in the library[1] but I'm hoping to merge it into the main code in the next week or so (after testing across devices/screens/etc).
Aside: Safari has gone ahead and introduced support for HWB, LAB and LCH color strings in CSS. Sadly, they're not recognised by Safari's canvas engine (yet). Also, their HSL and HWB gradients seem to be the same as the RGB gradients; their LAB/LCH gradients seem to dodge the dreaded Gray Zone.
[1] - https://github.com/KaliedaRik/Scrawl-canvas/tree/dec-21-dith...