xxxxxxxxxx
35
function setup() {
createCanvas(600, 500);
}
function draw() {
background(255); // alpha for fade
// stroke(255, 0, 255, 20);
// strokeWeight(1);
// noFill();
noStroke();
fill(255, 0, 255, 20);
angleMode(DEGREES);
let radius = 140;
let step = 0.1;
for (let angle = 0; angle <= 360; angle += step) {
// stroke(0, 255, 255);
let x1 = radius * cos(angle);
let y1 = radius * sin(angle);
let x2 = (radius / 3) * cos(5 * angle);
let y2 = (radius / 3) * sin(5 * angle);
let x3 = (radius / 6) * cos(20 * angle);
let y3 = (radius / 6) * sin(20 * angle);
let x = x1 + x2 + x3;
let y = y1 + y2 + y3;
for (let i = 0; i < 50; i+=5) {
ellipse(300 + x + i, 250 - y + i, 4);
}
}
}