Skip to content

sashless/KineticJS-Sand-Particles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KineticJS-Sand-Particles

KineticJS Sand Particles

This is a cool example of what you can do with the canvas element for HTML5. I used a canvas framework called KineticJs which allows multiple canvases to be placed on top of each other and animated individually to improve performance. I used a grid and a simple pathing algorithm to prevent overlap and randomly set the speed of each 'grain'.

Visit http://yuccaberry.no-ip.org/projects/sandman/ to see this in action

You can set the number of grains in the URL query string. eg: http://yuccaberry.no-ip.org/projects/sandman/?num=500 will set 500 grains of sand.

The project's KineticJS JavaScript Library v3.6.2 is outdated. Visit kineticjs.com to get the updated library.

About

KineticJS Sand Particles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published