Post B22QZcvpSu2YcHo3Rg by pekkavaa@mastodon.gamedev.place
 (DIR) More posts by pekkavaa@mastodon.gamedev.place
 (DIR) Post #B22QZcvpSu2YcHo3Rg by pekkavaa@mastodon.gamedev.place
       2026-01-07T09:41:39Z
       
       1 likes, 0 repeats
       
       Some of you might know that I've been working on a book. Today I'm happy to announcePalette Programming: A Modern Guide to Color Quantization https://paletteprogramming.comIt's a textbook on how to design color palettes and represent images using them. Will be out this year. Code in Python & NumPy.
       
 (DIR) Post #B22QZlMi6qIQlyRdSK by pekkavaa@mastodon.gamedev.place
       2026-01-07T09:41:39Z
       
       0 likes, 0 repeats
       
       The palette design theme is a good excuse to talk about some fundamental subjects such as algorithms, numerical programming, unsupervised learning (clustering), and color science. I've done a lot of research in the past year and published some of it on my site. https://30fps.net/pages/better-srgb-to-greyscale/https://30fps.net/pages/approximate-first-pc/https://30fps.net/pages/hyab-kmeans/I got a #NumPy guide chapter sample to show what I'm talking about: https://paletteprogramming.com/files/paletteprogramming-numpy-sample-jan5.pdfIt shows the style I'm after and is a nice standalone read too :)
       
 (DIR) Post #B22QZu1lu3tXddiXZI by pekkavaa@mastodon.gamedev.place
       2026-01-07T09:41:39Z
       
       0 likes, 0 repeats
       
       Interested? You can join the book's waiting list on the website or directly at https://buttondown.com/pekkavaa?tag=waitinglistOr even more directly via your terminal😃curl 'https://buttondown.com/api/emails/embed-subscribe/pekkavaa' \  -X POST \  -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \  -H 'Referer: https://mastodon.fediverse' \  -H 'Content-Type: application/x-www-form-urlencoded' \  --data-raw 'email=hack%40thepentagon.biz&tag=waitinglist'