xxxxxxxxxx
62
function setup() {
l = min(windowWidth, windowHeight)
createCanvas(l, l);
}
function draw() {
background(220);
makeStuffLookGood()
}
function makeStuffLookGood() {
translate(width / 2, height / 2)
let n = something.length
let a = sqrt(2) / 2 * width
for (let i = 0; i < TAU; i+= 0.01) {
stroke(something[floor((i / (TAU)) * n)])
line(0, 0, a * cos(i), a * sin(i))
}
}
const something = ["#0a0a0a", "#f7f3f2", "#0077e1", "#f5d216", "#fc3503"]