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.
- Host: GitHub
- URL: https://github.com/hawkgs/snow
- Owner: hawkgs
- License: mit
- Created: 2023-12-26T10:43:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-02T09:10:39.000Z (over 2 years ago)
- Last Synced: 2025-03-21T10:02:14.161Z (over 1 year ago)
- Topics: canvas-api, canvas2d, simulation, snow, snowflake
- Language: JavaScript
- Homepage:
- Size: 2.78 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# snow ❄️
A simple JS script for simulating 2D snow using the Canvas API.

**[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.