3 ms·
I've used the method described here [0] of simply incrementing hue by the golden ratio. You can generate dozens of colors that go well together yet are quite di
by jessaustin 7y ago
I've used the method described here [0] of simply incrementing hue by the golden ratio. You can generate dozens of colors that go well together yet are quite distinguishable.
[0] https://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/ https://martin.ankerl.com/2009/12/09/how-to-create-random-co...
- michaelmior 7y agoI haven't tried this, but it seems like just incrementing the hue would mean colours would be difficult to distinguish when printed in black and white.
- jessaustin 7y agoD'oh! I think you're right. In B&W these would be identical. I think one could use the same trick with lightness in this case, rather than hue. Still, colors generated that way are going to look like ass on a screen. It seems like you're already doing media queries, though, so doing two variations of this technique wouldn't be too bad...