wsnow
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

wsnow

A snow animation with canvas DEMO: wsnow

Install

$ npm install wsnow

Use

import WSnow from 'wsnow'

let wSnow = new WSnow({
    el: htmlElement,        // HTMLElement
    width: 1000,            // number
    height: 480,            // number
    gravity: 5,             // number 
    wind: 5,                // number
    airResistance: 2,       // number
    snowNum: 50,            // number
    snowColor: '#ffffff',   // string
    randomColor: false,     // boolean
})
wSnow.start();    // start 
wSnow.stop();     // stop
wSnow.destory();  // destory
wSnow.restart();  // restart

Readme

Keywords

none

Package Sidebar

Install

npm i wsnow

Weekly Downloads

5

Version

1.0.6

License

ISC

Unpacked Size

37.4 kB

Total Files

11

Last publish

Collaborators

  • wccdtx