Code:
astroid() {
for (let theta = 0; theta < TWO_PI; theta += 0.05) {
let x = this.r * this.a * pow(cos(theta), 3);
let y = this.r * this.a * pow(sin(theta), 3);
this.points.push(createVector(x, y));
}
}
Sources: Mathcurve - astroid Mathword - Astroid
![]() Mango leaf with astroid |
![]() Krishna anklet with astroid |
![]() Two dragon curves with astroid |
![]() Dragon curve with astroid |