Skip to content

pouyamer/fire-flies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fireflies

screen-capture.webm

A beautiful fireflies simulation made using Canvas API.

Lovely Fireflies that flicker in the sky.

Prerequisites

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.

Getting Started

  1. Open terminal and type
  2. npm install
    npx tsc
    
  3. Copy the contents of dist directory into your project folder
  4. 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

Configurations

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

Languages