Code:
tearDrop() {
let n = 4;
for (let theta = 0; theta < TWO_PI; theta += 0.1) {
let x = this.r * cos(theta);
let y = this.r * sin(theta) * pow(sin(theta / 2), n);
this.points.push(createVector(x, y));
}
} ![]() Snake kolam with tear curve |
![]() Two levy curves with tear curve |
![]() Mango leaf with tear curve |
![]() Krishna anklet with tear curve |




