mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-17 17:16:23 +01:00
I think I've only added replies to myself, but I have a hunch I've added more than that, which means broken links. Ehh… we'll fix it in post.
11 lines
507 B
Markdown
11 lines
507 B
Markdown
---
|
|
date: "2019-02-16T23:48:28Z"
|
|
tags:
|
|
- imported
|
|
- from-twitter
|
|
- golang
|
|
in_reply_to: ../1096919221345357824
|
|
---
|
|
I decided to generate the gif in [golang](/tags/golang) too. Palette quantisation was fun to learn about; how you take a 32 bit colour image and decide which colours you should use when downsampling into 256 colours.
|
|
|
|
I used the "Median Cut" method \([https://github.com/ericpauley/go-quantize/quantize](https://github.com/ericpauley/go-quantize/quantize)\) {{< imgorvid src="media-1.mp4" >}}
|