Code:
archimedesSpiral() {
let a = 0.1;
let dir = -1;
for (let theta = 0; theta < 4 * PI; theta += 0.1) {
let r = dir * a * pow(theta, this.n);
let x = this.r * r * cos(theta);
let y = this.r * r * sin(theta);
this.points.push(createVector(x, y));
}
}
ADH231a ruleset with archimedes spiral |
Rounded-star ruleset with archimedes spiral |
Two dragon curves with the archimedes spiral |
Hilbert curve with the archimedes spiral |