100x100 Computational Design Challenge

Throughout 2020 I created 100 computational designs in 100 days as a way to learn creative coding and explore generative art

Day 58 - Snow Angels

snow-angel-8.png

Today’s sketch is a variation on the others from earlier this week. Thee only change here is that, rather than points, now we’re drawing with lines. Also, I switched this one to draw from the outside in rather than the inside out as the others do.

Sketch:

https://editor.p5js.org/chelseamwatson/present/w4_UphwJl


Drawings:


Code:

y = 200;

function setup() {
  createCanvas(700, 700);

  let bgs = ['#E5D9CF', '#D9C0A5', '#AD2B33', '#EEEDE9'];

  let bg = random(bgs);
  c = color(bg);
  background(c);
  strokeWeight(1);
  strokeCap(SQUARE)

}

function draw() {

  y = y - 10;
  rot = random(360);

  let shades = ['#E5D9CF', '#D9C0A5', '#AD2B33', '#EEEDE9'];
  let shade = random(shades);
  c = color(shade);
  stroke(c);

  for (x = 0; x < 90; x++) {
    push();
    translate(width / 2, height / 2);
    rotate(radians(x) + rot);
    line(y, y, 0, 0);
    pop();
  }

  if (y < 0) {
    noLoop();
  }
}

Chelsea Watson