-
-
Notifications
You must be signed in to change notification settings - Fork 108
Add SVG export examples for various scenarios #1291
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds example code files for the Processing SVG library, demonstrating five different approaches to exporting SVG graphics from Processing sketches.
Key Changes:
- Created examples directory with 5 complete, working SVG export examples
- Each example demonstrates a distinct use case: no display, with display, single frame capture, 3D geometry export, and programmatic creation
- Examples are based on official Processing reference documentation
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| NoScreenDisplay/NoScreenDisplay.pde | Demonstrates SVG export without opening a display window |
| WithScreenDisplay/WithScreenDisplay.pde | Shows how to export SVG while displaying on screen using beginRecord() |
| SingleFrameFromAnimation/SingleFrameFromAnimation.pde | Captures a single frame from an animated sketch |
| ThreeDGeometry/ThreeDGeometry.pde | Exports 3D geometry as flattened SVG using beginRaw() |
| UsingCreateGraphics/UsingCreateGraphics.pde | Creates SVG files programmatically using createGraphics() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
|
Hi @SableRaf could you check if these examples are solid enough to explain how to use the SVG library? |
Description
Added 5 complete examples for the Processing SVG library based on the official reference documentation. These examples were previously listed on the Processing website but not bundled with the library.
Changes
Created
examplesdirectory with 5 working examples:beginRecord()beginRaw()createGraphics()Closes
Fixes #1290