Code:
deltoid() {
let a = 1;
for (let theta = 0; theta < TWO_PI; theta += 0.05) {
let x = this.r * (4 * a * pow(cos(theta / 2), 2) * cos(theta) - a);
let y = this.r * (4 * a * pow(sin(theta / 2), 2) * sin(theta));
this.points.push(createVector(x, y));
}
}
Kolam ruleset with deltoid curve |
Two triangle rulesets with deltoid curve |
Hilbert ruleset with deltoid curve |
Box ruleset with deltoid curve |