Code:
polygon() {
for (let theta = 0; theta < TWO_PI; theta += TWO_PI / this.m) {
let x = this.r * cos(theta);
let y = this.r * sin(theta);
this.points.push(createVector(x, y));
}
}
![]() Peano ruleset with polygon curve |
![]() ADH231a ruleset with polygon curve |
![]() Hilbert ruleset with polygon curve |
![]() Koch snowflake ruleset with polygon curve |