-
Processing.js is an open programming language for designers to program visuals, animation, simulations and interactions for the web. Processing.js uses Javascript to draw shapes and manipulate images on the HTML5 Canvas element.
Works: Safari, Firefox, Chrome, Opera, IE
Uses: Canvas tag
//setup method runs once
void setup() {
size(400, 400);
stroke(255);
}
//draw method runs multiple times
void draw() {
line(150, 25, mouseX, mouseY);
}
/*mousePressed and other
event based methods run on event */
void mousePressed() {
background(192, 64, 0);
}