gardn banner

image experiments

exp1

exp1 generates random "pixel-art" images with intricate patterns. you can actually generate such images on a tiny website i made.

some images generated with exp1

the algorithm is rather simple :

  1. generate a palette of 8 colors
  2. fill an image at random with colors from the palette
  3. for each pixel of the image, compute the average color within a 65x65 neighborhood, then replace the pixel's color with the one that is the farthest from the average within a 49x49 area around it

exp3

exp3 creates a colored plot of the greatest common divisors of pairs of integers. each column/row that corresponds to a prime number has been colored in white.

gcds of columns and rows indices