An open API service indexing awesome lists of open source software.

https://github.com/hawkgs/snow

❄️ A simple JS script for simulating 2D snow using the Canvas API.
https://github.com/hawkgs/snow

canvas-api canvas2d simulation snow snowflake

Last synced: 5 months ago
JSON representation

❄️ A simple JS script for simulating 2D snow using the Canvas API.

Awesome Lists containing this project

README

          

# snow ❄️

A simple JS script for simulating 2D snow using the Canvas API.

![Demo](assets/demo.gif)

**[Demo Page](https://hawkgs-snow.netlify.app)**

## Usage

Simply add the script to your HTML:

```html

```

Then you can use the global `Snow` object in your code:

```javascript
Snow.attachToElement(el, {
width: el.clientWidth,
height: el.clientHeight,
});
```

For more configuration options check [snow.js](scripts/snow.js) config.