Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add open with processing to examples #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

Stefterv
Copy link
Owner

No description provided.

Copy link

netlify bot commented Jan 26, 2025

Deploy Preview for tangerine-bonbon-7ec0ae ready!

Name Link
🔨 Latest commit 6581613
🔍 Latest deploy log https://app.netlify.com/sites/tangerine-bonbon-7ec0ae/deploys/6796ab20e07b4c0008f71422
😎 Deploy Preview https://deploy-preview-2--tangerine-bonbon-7ec0ae.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@msawired
Copy link

Hey @Stefterv this is super cool! Looking forward to adding this to OpenProcessing on java sketches.
Is it possible to add multiple pde files in a single URL? Many sketches have multiple PDEs on OP.

@Stefterv
Copy link
Owner Author

HI @msawired Right now you can add more sketch files with ?pde="sketch_file.pde,sketch_file2.pde"
I want to add the ability to also add more base64 encoded files so I'm open to suggestions, maybe I can even detect if the pde parameters are valid base64 files

@Stefterv
Copy link
Owner Author

Here is an example with multiple files with the URL loader: pde://sketch/url/github.com/processing/processing-examples/raw/refs/heads/main/Basics/Image/Alphamask/Alphamask.pde?pde="https://github.com/processing/processing-examples/raw/refs/heads/main/Basics/Image/LoadDisplayImage/LoadDisplayImage.pde

@Stefterv
Copy link
Owner Author

Keep in mind that this functionality is depend on my Gradle build which has not yet been merged into the processing/processing4#888 repo

@SableRaf
Copy link

SableRaf commented Jan 29, 2025

Could we also have the option of writing pde://sketch/url/github.com/processing/processing-examples/raw/refs/heads/main/Basics/Image/Alphamask/Alphamask.pde?pde="LoadDisplayImage.pde" and in that case assume that both files are at the same path? This should be the case for almost every sketch, right?

@Stefterv
Copy link
Owner Author

That already works

@Stefterv
Copy link
Owner Author

I added support for base64 encoding all the files:
pde://sketch/base64/LyoqCiAqIEFy....ogIAp9?pde=Sketch1.pde:Ly8gRGV...wp9ICA=,Sketch2.pde:Ly8gR2....W5lczsKfQ==&data=Processing.png:processing.org/img/processing-web.png

@SableRaf
Copy link

SableRaf commented Jan 29, 2025

I added support for base64 encoding all the files

Does that include the assets/images too? 👀

@Stefterv
Copy link
Owner Author

Yep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants