Code:
malteseCross() {
for (let theta = 0.1; theta < TWO_PI; theta += 0.05) {
let x = this.r * +cos(theta) * (pow(cos(theta), 2) - this.a);
let y = this.r * +this.b * sin(theta) * pow(cos(theta), 2);
this.points.push(createVector(x, y));
}
}
Box ruleset with cross curve |
Two Recursive circle rulesets with cross |
Peano curve with cross, a = 2.4, b = 1.4 |
Round star with cross curve, a = 2, b = 2.5 |