For drawing 2, I wanted to make something that would be technically interesting on the laser cutter. I decided to make this plaid pattern that will be rastered in two passes, one in blue and one in slightly higher power in red. The idea is that the overlapping zones will create a third, darker, color. It might be interesting when cut, it might not.



For drawing 3, I knew I wanted to do something involving circles, which are just generally a shape i really love. I decided to make this sort of non-intersecting circle plotter. Due to a bug in the code, the circles wouldn’t go near each other, which ended up making way more beautiful designs anyways. I’ve included the code below.




let circles = []
function setup() {
createCanvas(1000, 1000);
}
function draw() {
//background(255);
circles.push(newCircle(circles))
}
function newCircle(circles) {
let done = false
let next = []
let size = width/3
while (!done) {
next = [floor(random()*width), floor(random()*height), size]
done = true
circles.forEach((c) => {
if (dist(c[0], c[1], next[0], next[1]) < (c[2] + next[2])/1.5) {
done = false
}
})
size -= 0.1
}
print(circles.length)
if (circles.length > 400) {
noLoop()
save('circles.svg')
}
circle(next[0], next[1], next[2])
return next
}