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

Custom webview to render sketch + overlays #108

Open
dipamsen opened this issue Sep 1, 2024 · 1 comment
Open

Custom webview to render sketch + overlays #108

dipamsen opened this issue Sep 1, 2024 · 1 comment
Labels
low priority Not required immediately

Comments

@dipamsen
Copy link
Member

dipamsen commented Sep 1, 2024

Instead of using the Live Preview view to render all animations and overlays on the client web page, we can have a custom webview which will render the sketch (from the user's workspace) in a iframe (which will still be served up by live-server), and our overlays (animations, captions, etc.)

This has the following benefits:

  • User does not have to copy all client files every time and can start with a blank p5 boilerplate workspace
  • More control on overlays
  • Prevents refreshing of entire view for live reload (only the iframe containing the sketch will be reloaded)
@dipamsen dipamsen added the low priority Not required immediately label Sep 1, 2024
@shiffman
Copy link
Member

shiffman commented Sep 1, 2024

This is a great idea!

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

No branches or pull requests

2 participants