The original idea behind Pixel Albums was to see how much you can remove from an image before it becomes unrecognisable. Using code I have edited album covers from my favourite music artists into these pixelated images that still in theory will resemble the original covers.

 

While the first series of Pixel Albums did not fully explore how far you can remove the image before you cannot tell what it was or what the image actually shows. For the second series of Pixel Albums this is what is going to be explored.

 

A basis of the code that is used for the first series of Pixel Albums is below,

 

PImage img;

 

float cd = 7;

 

 

 

void setup() {

 

  size(600, 600);

 

  background(0);

 

  // load image and load pixels

 

  img = loadImage("data/muse_Absolution.jpg");

 

  img.loadPixels();

 

  //

 

  noStroke();

 

}

 

void draw() {

 

  //

 

  for (int y=0; y<img.height; y+=cd+1) {

 

    for (int x=0; x<img.width; x+=cd+1) {

 

      //

 

      color c = img.pixels[x + img.width * y];

 

      fill(c);

 

      rect(x, y, cd, cd);

 

    }

 

  }

 

}

 

void mousePressed() {

 

  //

 

  saveFrame("muse/grabb####.png");

 

}

 

 

© chrisjdavies 2017