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 88 - Waves

waves-12.png

Landing on something pretty special this morning. I went into this sketch with an idea of what I wanted - stacked curvy lines in alternating colours, with the same border I’ve established in the other pieces this week. However, the results of messing with the curves weren’t like anything I could have predicted. This is truly what I love about generative art.

Sketch:

https://editor.p5js.org/chelseamwatson/present/1UFcRJx0S


Drawings:


Code:

y = 0;

function setup() {
  createCanvas(800, 800);
  background(245, 243, 240);
  rR = random(0, 255);
  rG = random(0, 255);
  rB = random(0, 255);
  rS = random(2, 100);
  inc = TWO_PI / int(random(10, 300));
}

function draw() {

  let a = 0.0;
  let i = 0;
  for (let i = 200; i < 600; i = i + 1) {
    if (y + cos(a) * rS < 200 || y + cos(a) * rS > 600) {
      stroke(245, 243, 240);
    } 
    else {
      stroke(rR, rG, rB);
    }  
    ellipse(i, y + cos(a) * rS, 1);
    a = a + inc;
  }
  y = y + 2
  rR = random(0, 255);
  rG = random(0, 255);
  rB = random(0, 255);
}

Chelsea Watson