Skip to content

daithiocrualaoich/rainyday.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: 10,               // Defines blur due to rain effect
    opacity: 1,             // Opacity of rain drops
    fps: 30                 // Frame rate per second
});
engine.rain([ [3, 3, 0.88], [5, 5, 0.9], [6, 2, 1] ], 100);

About

Simulating raindrops falling on a window

Resources

License

Stars

Watchers

Forks

Packages

No packages published