Skip to content

processing/processing-p5.js-mode

 
 

Repository files navigation

p5.js Electron mode for Processing

Desktop Support for p5.js via a New Processing Mode

image

This mode integrates p5.js into the Processing Development Environment (PDE) and provides a desktop runtime based on Electron.

Here is a usage- and contribution-focused README, with background, grant framing, and personal reflections removed.

Features

  • Run and stop p5.js sketches directly from Processing
  • Electron-based embedded browser for rendering
  • Error reporting in the editor
  • Built-in examples (WIP)
  • Syntax highlighting (Note: The current syntax highlighting system has known limitations and may change)
  • Works on Linux, macOS, and Windows
  • PNPM for Node package and dependency management
  • Automatic installation of required tools:
    • PNPM
    • Node.js
    • Electron

Exporting Sketches

  • Export p5.js sketches as standalone desktop apps
  • Uses electron-builder for packaging

Installation

Using Prebuilt Releases

  1. Download the latest .pdex file from the Releases page.
  2. Opening the .pdex file in Processing

From Source (for contributors)

  • The mode is implemented in Kotlin
  • Mode-specific code lives in the top-level p5js directory
  • Build and distribution tasks are handled with Gradle

See the wiki for architecture notes.

Licensing

License information can be found in LICENCE.md.

About

Write and run p5.js sketches on desktop using the p5.js mode

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 94.0%
  • Processing 1.6%
  • Kotlin 1.2%
  • GLSL 0.8%
  • Objective-C 0.7%
  • HTML 0.5%
  • Other 1.2%