Skip to content

Releases: processing/processing-p5.js-mode

p5js-beta-04

22 Oct 15:08
41b0492

Choose a tag to compare

Bug Fixes

  • The sketch now starts in the correct size set by createCanvas(<width>, <height>): screens with different kinds of pixel density should work, as I rely on the CSS pixels in the canvas’ style object rather than the device pixels in width/height attributes
  • Examples can now be run directly after opening and without saving them first. Since we need to copy Electron files into the example and create node_modules, a sketch cannot be read-only like example sketches are. Therefore, opened examples are copied into a temporary folder before run.

Installation

Tested with Processing 4.4.7 on MacOS Monterey 12.7.6 and Windows 10.

  1. If you have installed this mode before, make sure to remove the modes/p5js folder in your Processing sketchbook for a smoother re-install.
  2. Download the released .pdex file down below.
  3. Double-click the .pdex file to install the mode.
  4. When Processing starts up, click Yes in the dialog to confirm installation. The mode will be placed in your Processing sketchbook folder.
  5. Restart Processing.
  6. In Processing, open the mode dropdown and select p5.js.
  7. The mode tries its best to ensure the presence of the necessary tools pnpm and Node. Wait until the status bar in the Processing editor notifies you that the setup is complete. You can then code and run your sketch.

You can find more information—including a little demo video—in the mode’s README.

For feedback, feel free to drop us a line at p5mode-feedback@processingfoundation.org or raise an issue.

p5js-beta-03

22 Oct 09:34
66a9c48

Choose a tag to compare

Bug Fixes

  • Non-JavaScript files (especially the Electron scaffolding) is now hidden from the user; you only see your sketch files in the PDE tabs
  • node_modules are now ignored when saving/saving-as your sketch
  • The index.html that is needed by Electron is now generated dynamically to guarantee that all your sketch files are loaded properly, no matter whether you have renamed them/added new ones/deleted some
  • The sketch now starts in the correct size set by createCanvas(<width>, <height>)
  • More stability (no ConcurrentModificationExceptions anymore)

Installation

Tested with Processing 4.4.7 on MacOS Monterey 12.7.6 and Windows 10.

  1. If you have installed this mode before, make sure to remove the modes/p5js folder in your Processing sketchbook for a smoother re-install.
  2. Download the released .pdex file down below.
  3. Double-click the .pdex file to install the mode.
  4. When Processing starts up, click Yes in the dialog to confirm installation. The mode will be placed in your Processing sketchbook folder.
  5. Restart Processing.
  6. In Processing, open the mode dropdown and select p5.js.
  7. The mode tries its best to ensure the presence of the necessary tools pnpm and Node. Wait until the status bar in the Processing editor notifies you that the setup is complete. You can then code and run your sketch.

You can find more information—including a little demo video—in the mode’s README.

For feedback, feel free to drop us a line at p5mode-feedback@processingfoundation.org or raise an issue.

p5js-beta-02

10 Oct 13:10
dd3dc51

Choose a tag to compare

Installation

Tested with Processing 4.4.7 on MacOS Monterey 12.7.6 and Windows 10.

  1. If you have installed this mode before, make sure to remove the modes/p5js folder in your Processing sketchbook for a smoother re-install.
  2. Download the released .pdex file down below.
  3. Double-click the .pdex file to install the mode.
  4. When Processing starts up, click Yes in the dialog to confirm installation. The mode will be placed in your Processing sketchbook folder.
  5. Restart Processing.
  6. In Processing, open the mode dropdown and select p5.js.
  7. The mode tries its best to ensure the presence of the necessary tools pnpm and Node. Wait until the status bar in the Processing editor notifies you that the setup is complete. You can then code and run your sketch.

New Feature: Export Sketch as Application

The new feature for this release is the implementation of File > Export Application via Electron Builder. For easy sharing, hit that menu item or ctrl + shift + E/cmd + shift + E to package your sketch as a standalone application for your platform.

The status bar will inform you once your application is ready and Processing will open your sketch folder in your local file browser. Navigate to the dist folder to either find a portable Windows executable, a MacOS .app file, or a Linux .AppImage file, depending on your system.


You can find more information—including a little demo video—in the mode’s README.

For feedback, feel free to drop us a line at p5mode-feedback@processingfoundation.org or raise an issue.

p5js-beta-01

01 Oct 06:24
23b6807

Choose a tag to compare

Installation

This has been tested with Processing 4.4.7 on MacOS Monterey 12.7.6 and Windows 10.

  1. Download the released .pdex file down below.
  2. Double-click the .pdex file to install the mode.
  3. When Processing starts up, click Yes in the dialog to confirm installation. The mode will be placed in your Processing sketchbook folder.
  4. Restart Processing.
  5. In Processing, open the mode dropdown and select p5.js.
  6. The mode tries its best to ensure the presence of the necessary tools pnpm and Node. Wait until the status bar in the Processing editor notifies you that the setup is complete. You can then code and run your sketch.

You can find more information—including a little demo video—in the mode’s README.

For feedback, feel free to drop us a line at p5mode-feedback@processingfoundation.org or raise an issue.

p5js-pre-03

26 Sep 03:54
fbe1818

Choose a tag to compare

p5js-pre-03 Pre-release
Pre-release

This pdex release comes with automatic Node installation. Tested on MacOS Monterey 12.7.6 with Processing 4.4.7.

Please find installation instructions in the mode’s README.

p5js-pre-02

24 Sep 19:06
a8b9b2f

Choose a tag to compare

p5js-pre-02 Pre-release
Pre-release

Fixed .pdex file by adding an extra top-level folder named after the project. Install by double-clicking. Tested on MacOS with Processing 4.4.7.

p5js-pre-01

19 Sep 19:09
4d49d88

Choose a tag to compare

p5js-pre-01 Pre-release
Pre-release

First try at releasing a .pdex file for easy install of the p5.js mode in Processing.