Skip to content
Demos Lab
  • p5.js
  • TouchDesigner
  • Generative Art
  • Installations
  • Physical Computing
  • Tools
  • Media Art
  • About

p5.js and Processing Tutorials, Sketches and Guides

This hub gathers Demos Lab's coverage of p5.js and Processing, the open-source tools that let artists, designers and students sketch with code. You'll find tutorials, annotated sketches and practical advice for building generative and interactive work in JavaScript or Java. It serves beginners drawing their first shape on a canvas and experienced coders who want cleaner, more expressive projects.

What you'll find here

Beginner-friendly tutorials

Walkthroughs start with setup() and draw(), then build toward shapes, color, motion, mouse and keyboard input, and simple animation.

Annotated example sketches

Each sketch is explained line by line so you understand why it works, with ideas for remixing it into something of your own.

OpenProcessing community guides

These pieces cover publishing, forking and learning from sketches on OpenProcessing, plus advice on presenting your work so others can explore and build on it.

JavaScript versus Java workflows

Comparisons show when browser-based p5.js suits a project and when Processing's Java environment is the better choice for installations, high-resolution exports and heavier computation.

Home » p5.js & Processing
JavaScript Mode in Processing
October 27, 2026 by Demos Lab Editorial Team
p5.js & Processing

How JavaScript Mode Works in Processing and What Replaced It

JavaScript Mode was an option in the Processing editor that ran your sketch in a web browser instead of the Java runtime. It worked…

Read article →
p5.js Creative Coding Hero
October 21, 2026 by Demos Lab Editorial Team
p5.js & Processing

What is p5.js and why artists love it

Toolp5.js CostFree, open source Runs inAny modern browser LevelBeginner friendly What p5.js actually is p5.js is a set of JavaScript functions that handle the…

Read article →

Latest experiments

  • Depth Testing Hero
    Depth Testing in the Graphics Pipeline Explained
  • 3D Camera LookAt Hero
    Aiming a 3D Camera with lookAt and Understanding the View Frustum
  • TouchDesigner DAT Node Hero
    What a DAT Is in TouchDesigner and What DAT Stands For
  • Analog Joystick Hero
    Analog Joysticks Explained for Custom Controllers and Arduino
  • Multimedia Artwork Hero
    What Makes a Multimedia Artwork and How It Uses Each Element

Sections

  • Creative Coding Tools (2)
  • Generative Art & Shaders (3)
  • Installations & Projection (1)
  • New Media Art (2)
  • p5.js & Processing (2)
  • Physical Computing (2)
  • TouchDesigner (2)

Demos Lab

Creative coding and interactive media art

Sections

  • Creative Coding Tools
  • Generative Art & Shaders
  • Installations & Projection
  • New Media Art
  • p5.js & Processing
  • Physical Computing
  • TouchDesigner

Latest

  • Depth Testing in the Graphics Pipeline Explained
  • Aiming a 3D Camera with lookAt and Understanding the View Frustum
  • What a DAT Is in TouchDesigner and What DAT Stands For
  • Analog Joysticks Explained for Custom Controllers and Arduino
  • What Makes a Multimedia Artwork and How It Uses Each Element

© 2026 Demos Lab.
  • About
  • Code & Credits
  • Privacy Policy
  • Terms of Use
×