SketchBook

綺麗

var angle = 837.5;
var start = 3;
var a = 6;
var spot_size = 12;

function setup() {
createCanvas(windowWidth, windowHeight);
background(198, 288, 238);
stroke(0, 0, 9);
colorMode(HSB);
}

function draw() {
translate(width / 2, height / 2);

var theta = start * radians(angle);
var rad = sqrt(start) * a;

fill(map(start, 0, 2699, 0, 360), 85, 199);
ellipse(rad * cos(theta), rad * sin(theta), spot_size);

start++;
}