and man was it a pain
agreed. My very first cut at it was all grey, but I could only ever get about 9 distinct brightnesses[1], thus the (very hacked-up) Less-Angry Rainbow
…and the LP Pro LEDs use 6-bit color… so I hacked up a Jupyter notebook using the colormath Python lib to do 6-bit RGB -> full-range RGB -> LAB -> adjust brightness -> back again. Painful… I used this for LAB preview, but having to paste L, A, B separately sux.
I highly recommend sticking with 9_grid.lua (from the “tutorial” repo) or loom for testing; as I mentioned above, awake is kind of weird in how it handles the grid. Also, loom makes use of quite a few brightnesses.
[1] Someone with more time/patience than I might be able to tweak the values to get 16 brightnesses which are close to “grayscale”; I stopped after iterating over simple grey triplet (r=g=b) palettes a few times. After that, I tried orange, which curiously didn’t work. Not sure what I did wrong there…