Processing.js

Not 1 but 146 demos today. John Resig, JavaScript guru and founder of the awesome jQuery library has ported the Processing visualization language to JavaScript, using the canvas element. With help from Casey Reas and Ben Fry they have created a lot of different demos using the library.

Processing.js

Processing.js

If you wish to only use the Processing API (not the language) you can interact with it like so:

var p = Processing(CanvasElement);
p.size(100, 100);
p.background(0);
p.fill(255);
p.ellipse(50, 50, 50, 50);

To use the full power of the language, you would pass in your Processing code as the second argument.

Processing(CanvasElement, "size(100, 100); background(0);" +
"fill(255); ellipse(50, 50, 50, 50);");

As for demos of the tool, there are 91 basic demos; 51 larger, topical, demos and 4 custom “in the wild” demos.

View the Processing tool

Info

Type:
Tools
Author:
John Resig
Tags:
Posted on:
April 5th, 2009
Posted by:
Andi Smith
Views:
2410

Rating

5

Your Rating:
1 Star2 Stars3 Stars4 Stars5 Stars

Works on

BETA Please let us know if you find Processing.js works in other browsers by leaving a comment below.

Add comment

(required)
(required)
(will not be published)
(required)