spmbt / snowfalls

Some scripts of moving snowflakes on DOM layers and Canvas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snowfalls

Some scripts of moving snowflakes on DOM layers and Canvas

Article (in Russian) about snowfall scripts (12 variants) for DOM and Canvas scenes - Habrahabr (ext. link). Codes, FPS, screenshots.

Script groups and variations

For better run and inspecting of selected old scripts its are located here with necessary facilities and rework, from little to more.

Use pages of demo for show effects and experiments with parameters. Use newest versions of code for run in another pages.

Assets of selected scripts

'falling-snow' - most natural moving of flakes using 4 parameters and 1 of themсфыгфд is harmonical.

'jSnow' - fairly natural movement with this parameters (big and slow harmonical gusts to left and right). More simple maths.

'snow-canvas' - method of fast and massive animations using Canvas object of HTML5. When no additiona library, we arrive maximum of visual effects. In this variant the method of casual deviations is used, without harmonic functions.

'snowMachine' - combined constructor for create DOM-manager od Canvas one;

  • ... - additional visual effects based on 'snow-canvas' engine: snow growing;

About

Some scripts of moving snowflakes on DOM layers and Canvas

License:GNU General Public License v3.0


Languages

Language:HTML 90.1%Language:JavaScript 9.9%