Personally Themed Generative Art

k-means clustering Color Palettes Generative Art Data Art

An explanation of this year’s stocking stuffers

Ryan McShane https://ryanmcshane.com
2022-12-24

In my last blog post, I demonstrated that one could extract the dominant/most common colors in a .jpeg using \(k\)-means clustering to create a color palette, which I skillfully randomized to create thematic art.

Here, I’ll show the source images and the resulting art I’ve made.

Batman Lunchbox

Source Image

A compilation I made:

The initial color palette (with \(k = 30\) clusters):

The curated color palette with modified weights and removed colors:

Final Print

World Map

Source Image

The initial color palette (with \(k = 30\) clusters):

The curated color palette:

Final Print

Andy Sports Fandom

Source Image

The initial color palette (with \(k = 30\) clusters):

The curated color palette with modified weights and removed colors:

Final Print

Armenian Color Palette

Source Images