thecodingtrain.com icon indicating copy to clipboard operation
thecodingtrain.com copied to clipboard

Processing 4.2 pdez files!!

Open shiffman opened this issue 2 years ago • 2 comments

Wow! Processing 4.2 adds the new pde:// protocol which allows you to open Processing sketches in the PDE directly from the browser!! We should implement this into the site for all video pages!!

See: https://github.com/processing/processing4/releases/tag/processing-1292-4.2

cc @benfry @SableRaf

Will tackle this here first, but then I can add this to the Nature of Code website as well!

shiffman avatar Feb 23 '23 01:02 shiffman

Here is a rough list of steps for implementing this to the site:

  • [ ] Create .pdez compressed files for all code examples in https://github.com/CodingTrain/Coding-Challenges
  • [ ] Add functionality to the website to link to pde:// urls of the .pdez files (if user has required version of Processing installed (?))
  • [ ] Update content json files to link to .pdez files on GitHub

dipamsen avatar Apr 11 '23 15:04 dipamsen

Quick update to share my reference implementation for the Open in Processing button:

https://sableraf.github.io/testURIscheme/

Notice the tooltip that serves as a fallback in case Processing is not installed.

We could also consider having a separate button for downloading the sketch.

Note: support for pde:// on Linux is still pending but this Pull Request should solve the issue: https://github.com/processing/processing4/pull/696

SableRaf avatar May 02 '23 14:05 SableRaf