Genuary 2023.31: Break a previous image

Genuary!

Spend a month making one beautiful thing per day, given a bunch of prompts. A month late, but as they say, ’the second best time is now'.

Let’s do it!

31) Deliberately break one of your previous images, take one of your previous works and ruin it. Alternatively, remix one of your previous works.

Ouch.

Based on Genuary 2023.19: Black and white

Still kinda cool looking.


function setup() {
  createCanvas(400, 400);
  background(255);
  rectMode(CENTER);

  stroke(255);
  fill(0);
}

function draw() {
  translate(200, 200);
  
  if (frameCount % 100 == 0) {
    push();
    translate(random(10), random(10));
  }
  
  rotate((frameCount % 360) * TWO_PI / 360.0);
  scale(cos(frameCount / 100.0));
  
  rect(0, 0, 200, 200);
  
  if (frameCount % 100 == 0) {
    pop();
  }
}