Canvas Animation written in TypeScript. No jQuery and no other 3rd party dependencies. You may also interested in my another repo about canvas animation.
Step-by-step guide can be found in this Medium Post
This repo includes blooming flowers animation examples. The flower drawing was inspired and optimized from this tutorial.
-
models
flower.ts
flower-center.ts
petal.ts
point.ts
-
services
flower-randomization.service.ts
-
animations
blooming-flowers.ts
interactive-flowers.ts
In order to show the steps of drawing flower, I also kept the "sandbox" that I played with in supplementary
folder. The code in supplementary
folder generates an illustration below.
// run the animation app
npm start
// build the app
npm run build