Code:
quadrifolium() {
let a = 1;
for (let theta = 0; theta < TWO_PI; theta += 0.1) {
let x = this.r * (2 * a * pow(sin(theta), 2) * cos(theta));
let y = this.r * (2 * a * pow(cos(theta), 2) * sin(theta));
this.points.push(createVector(x, y));
}
}
ADH231a ruleset with quadrifolium curve |
Kolam rulesset with quadrifolium curve |
Mango leaf ruleset with quadrifolium curve |
Box rule-set with kiss curve |