Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Petal Class
- class Petal {
- constructor(index, x, y, diameter) {
- this.index = index
- this.x = x
- this.y = y
- this.diameter = diameter
- this.angle = getPetalAngle(x, y)
- }
- drawPetal() {
- ellipse(this.x, this.y, this.diameter)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement