Day 26 - Coral Lights
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:
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(); }