Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/quentinroy/snow

Simple snow animation
https://github.com/quentinroy/snow

Last synced: 5 days ago
JSON representation

Simple snow animation

Awesome Lists containing this project

README

        

# Snow

A small utility to simulate snow.

## Usage

```html

```

```js
let canvas = document.querySelector("#snow-canvas")

// Optional argument. All options become mutable properties. Check sources
// for more information.
let options = {
meanSize: 10,
sdSize: 2,
color: "rgba(255,255,255,0.9)",
meanSpeed: 150,
sdSpeed: 10,
flow: 0.01,
sdAngle: 5,
isFpsShown: false,
}

// Create and start the snow animation.
let snow = new Snow(canvas, options)

// Stop the snow animation.
snow.stop()

// Resume the snow animation.
snow.resume()
```