/testURIscheme

Primary LanguageHTMLGNU General Public License v2.0GPL-2.0

image

Processing PDE Protocol Demo

This repository contains a simple demonstration of the pde:// protocol, introduced in Processing 4.2, which allows users to open Processing sketches directly from a web browser into the Processing Development Environment (PDE).

Usage

  1. Setup: Ensure you have Processing 4.2 or later installed on your system. Download it from Processing.org.

  2. Open the Demo Page: Launch https://sableraf.github.io/testURIscheme/ in a web browser.

  3. Interact: Click the "Open in Processing" button to open the included sketchBundle.pdez file in the Processing IDE. If it doesn't open, the tooltip provides a link to download Processing.

How It Works

The pde:// protocol allows for seamless integration between web pages and the Processing IDE by using a custom URI scheme. This scheme is installed on your Operating System the first time you launch the PDE on your machine. This demo showcases how to implement this feature to provide a better user experience when working with the pde:// protocol.

Note: this is a simplistic example. In a real-world scenario, you would likely want to split the code into separate files.

About the .pdez File Format

The .pdez file format is a compressed archive that contains a Processing sketch and any associated files. This format is used to package sketches for distribution and sharing. The sketchBundle.pdez file included in this repository contains a simple Processing sketch. To create your own .pdez file, compress your sketch folder into a .zip archive and rename it to .pdez.

Contributions

Feel free to open issues or submit pull requests if you'd like to contribute to this project.

License

This project is open source and available under the GPL v2 license