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 32 - Golden Wallpaper

golden-lines-1.png

Well, nobody was able to recommend any other Instagram famous walls to try and replicate after yesterday, and Google just showed me a bunch of walls with painted wings on them. The internet is weird! So, This week’s theme will just be exploring patterns.

Transparently, I wasn’t going to share today’s sketch. I created it by manipulating yesterday’s code but went too far and couldn’t come back from it to something i really liked and it ended in a place where I was just randomly mashing numbers at like midnight and seeing what would happen, saving an image each time. With a fresh brain this morning, I know how I could have used random to manipulate the values each time the program ran to actually make it computational. But, I’m going to take that lesson and move on. So, here are some variations on yesterday’s code generated by mashing keys!

Sketch:

https://editor.p5js.org/chelseamwatson/present/7o3h0dA7x


Drawings:


Code:

x = 0;
y = 725;
count = 1;
hor = 0;

function setup() {
  createCanvas(700, 690);
  strokeWeight(0.5)
  background(50);
  noFill();
  stroke(209,185,72);
}

function draw() {
  
  oddOrEven = (count % 2);
  if (oddOrEven == 1) {
    hor = 0;
  } else {
    hor = -20;
  }

  noFill();
  quad(x+5, y-10, x + 20, y + 20, x, y + 50, x - 20, y + 20);
  
  noFill();
  quad(x-8, y-5, x + 10, y + 10, x, y + 40, x - 10, y + 10);

  x = x + 40;
  if (x > width) {
    x = hor;
    y = y - 50;
    count = count + 1;
  }

  if (y < -50) {
    noLoop();
  }

}

Chelsea Watson