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 26 - Coral Lights

coral-lights-1.png

Hello! I’m back after a brief hiatus - I took some time off work and got out of the city for a few days, doing my best to unplug and recharge. With a fresh brain I’m hoping to explore circular drawing this week. I’ve been shying away from it because of all the math but I’m trying to focus less on understanding how things work and more on understanding what to use to get the desired outcome. Today was building on code from Generative Design, with no real prompt other than to start getting the hang of how to work with circular patterns.

Sketch:

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


Drawings:


Code:

function setup() {
  createCanvas(700, 700);
  background(235, 173, 167);
  strokeWeight(0.5);
  stroke(250);
}

function draw() {

  translate(width / 2, height / 2);

  r = random(-350, 350);

  var radius = width / 4;
  var angle = TAU / r;

  for (var i = 0; i <= 200; i++) {
    var x = cos(angle * i) * radius;
    var y = sin(angle * i) * radius;
    line(r, r, x, y);
  }

  noLoop();
}

Chelsea Watson