Julian Fietkau on Nostr: Pseudo-randomly based on a hash of the tag name: I use the HSL space, which makes it ...
Pseudo-randomly based on a hash of the tag name: https://fietkau.software/FediRoster.git/blob/d19a67018f984d670d21dcc7febdcd2a5bab8d78/main.py?hb=HEAD#l394 I use the HSL space, which makes it pretty easy to assign ranges that avoid white/black/gray and keep the text contrast readable enough.