After some research and lots of tinkering I managed to implement adaptive palette generation in ! The render image has been reduced to 8 colours using the following algorithms:
1) Popularity
2) Median Cut
3) Variance-Based
4) Mean-Split

2 4

just a small artist trying to grow & make mutuals with the algorithms:,)
fnaf enjoyer since 2015 but i've only started attempting fanart now so follows would be highly appreciated

6 32

We all know that's just how Twitter does it's thing by now. It's fine:

Twitter algorithms: IS THIS A FACE?

1 5

Simpsons Characters as Sorting Algorithms: A Thread

6 18