xxxxxxxxxx
34
/*
This artwork is made for Pameran Adikara Rupa
Coding by Arya Harditya
*/
let circum = 5;
let step = 0.5;
let angle = 0;
let maxNumber = 80;
function setup() {
// createCanvas(1754, 2480);
createCanvas(800, 800);
background(0);
colorMode(HSB);
noFill();
translate(width / 2, height / 2);
for (let i = 0; i < maxNumber; i += step) {
strokeWeight(random(i * 0.5));
stroke(random(i * 5), random(i * 5), 100);
let r = 50;
arc(0, 0, r * i, r * i, i, circum * i, OPEN);
}
}
function keyPressed() {
if (key === "s") {
saveFrames("frame", "png", 1, 2);
}
}