screen-capture.webm
A beautiful fireflies simulation made using Canvas API.
Lovely Fireflies that flicker in the sky.
You must have Node.js Installed on your Machine
Don't have node intalled? You can download it from official node.js website official Node.js website.
- Open terminal and type
-
npm install npx tsc
- Copy the contents of
dist
directory into your project folder - Link all files in the
js
folder to your html file (before your main javascript file).
Now you can use the addCanvas
function in your app
your fireflies canvas has a default configuration that can be edited (before tsc) in src/config.ts
See the 'example' folder to learn about how the application works