13 Making Your Work Public

Sketch 100: Processing on the Web

Processing sketches can usually execute within a browser, requiring little to no modification to make dynamic and interactive web objects. The system that allows this is Processing.js; it converts the Processing sketch into JavaScript before running it and displays the result in an HTML5 canvas.

There are four steps in running a sketch from the web:

  1. Download Processing.js. This means going to a site like https://processingjs.org/download/ and getting the files processing.js and processing.min.js.
  2. Create the Processing sketch. We’ll use Sketch 91, the aurora simulation, as our ...

Get An Artist's Guide to Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.