Get new jQuery plugins just once a week

×

Sketchjs

August 7, 2012

sketchjs

JavaScript based creative coding experiments

Sketchjs

Sketchjs is a tiny (~5k) boilerplate for creating JavaScript based creative coding experiments. The demo shows what can be done with just a few lines of code.It handles all that tedious but necessary stuff that would normally slow you down – setting up an animation loop, creating and managing a graphics context for Canvas or WebGL, cross browser and device event binding and normalisation for mouse, touch and keyboard events, handling window resizes…etc.
Basic Example
var ctx = Sketch.create();

ctx.draw = function() {
ctx.beginPath();
ctx.arc( random( ctx.width ), random( ctx.height ), 10, 0, TWO_PI );
ctx.fill();
}

Created by Justin Windle

Download
GitHub
Example

Sketchjs

Related posts:

Artisan js
jsPanel
Rate Yo
sketchjs

http://jquer.in/wp-content/uploads/2012/08/sketchjs.png

jQuery plugin

Sign up for our weekly newsletter.

* We won't spam you ever