teddywuinfo / rainyday.js

Simulating raindrops falling on a window

Home Page:http://maroslaw.github.io/rainyday.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

devDependency Status Build Status

rainyday.js

A simple script for simulating raindrops falling on a glass surface.

For demos and more information see the project page.

You might also consider subscribing to my subreddit.

How to use:

var engine = new RainyDay({
    element: 'background',  // ID of image element
    blur: 0.5,              // Defines blur due to rain effect
    opacity: 1,             // Opacity of rain drops
    fps: 30,                // Frame rate per second
    speed: 30               // Speed of rain drops
});

About

Simulating raindrops falling on a window

http://maroslaw.github.io/rainyday.js/

License:GNU General Public License v2.0