davidhatten / geometric-drawer

A little single-page javascript app to generate simple geometries and mandalas
0 stars 0 forks source link

Refactor petal logic into a single module #27

Closed davidhatten closed 6 years ago

davidhatten commented 6 years ago

RoundedPetal.js has some gnarly logic. It's duplicated in CurveyPetal.js and CirclePetal.js

The purpose of the logic is twofold: 1) Create the necessary petals at angle 0 2) Move each petal to it's appropriate angle

I think this strategy is correct, but I would like it to live in one place instead of being duplicated. Every new petal should be able to hook into this algorithm easily and without knowing all of the crazy.

davidhatten commented 6 years ago

Fixed in 1.3.0