Skip to content

codders/snow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snow!
=====

Javascript-based snow.

Requirements:
=============
You'll need:

1. Prototype - http://www.prototypejs.org

Instructions:
=============

1. Add a div to contain your snow:
<div id="my_snow"></div>

2. Create a snow field. Snow fields need a width, a height, and (optionally) a renderer:
var snowField = new SnowField("my_snow", { width: 750, height: 400, renderer: 'canvas' });

3. Add some snow:
snowField.addFlakes(350);

Additional Features:
====================

You can stop and start the snow:
snowField.stop(); snowField.start();

Rendering engine selection:
===========================
Snow has a flexible rendering architecture, and includes renderers for canvas, CSS and SVG.