xxxxxxxxxx
33
function setup() {
createCanvas(500, 500);
background(255);
noLoop();
}
function draw() {
angleMode(DEGREES);
fill(255, 0, 0, 10);
noStroke();
let radius = 150;
for (let angle = 0; angle < 360; angle += 0.1) {
for (let i = 0; i < 100; i += 1) {
let x1 = radius * cos(angle + (0.1 * i));
let y1 = radius * sin(angle + (0.1 * i));
let x2 = (radius / 3) * cos(12 * (angle + (0.4 * i)));
let y2 = (radius / 3) * sin(12 * (angle + (0.4 * i)));
let x3 = (radius / 6) * cos(11 * (angle + (0.5 * i)));
let y3 = (radius / 6) * sin(11 * (angle + (0.5 * i)));
let x = x1 + x2 + x3;
let y = y1 + y2 + y3;
ellipse(250 + x, 250 - y, 2, 2);
}
}
}