Skip to content

florianhacker/funk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

FUNK.JS

FUNK.JS - Easy to use Javascript Animation Toolbox

// initialise FUNK
FUNK.init();

// Add canvas to Dom
FUNK.applyStageToDom();

// CREATE Particle
FUNK.ShapeFactory.createShape("circle", 
  // how it looks (FUNK.VisualObject)
	{ 
		color : "#00ff00", 
		r : 100
	}, 
  // how it moves (FUNK.PhysicalObject)
	{ 
		x : 500, 
		y : 300,
		velX : 5,
		velY : -4,
		drag : 0.99,
		gravity : 0.1
	} 
);

// get funky
FUNK.Animator.run()

Releases

No releases published

Packages

No packages published