Code:
clover() {
for (let theta = 0; theta < TWO_PI; theta += 0.05) {
let r = 1 + cos(this.m * theta) + pow(sin(this.m * theta), 2);
let x = this.r * r * cos(theta);
let y = this.r * r * sin(theta);
this.points.push(createVector(x, y));
}
}Sources:
![]() ADH231a ruleset with clover curve |
![]() Dragon rule-set with clover curve |
![]() Kolam ruleset with clover curve |
![]() Hilbert curve with cornu spiral |




