Add SVG export examples for various scenarios#1291
Open
hxrshxz wants to merge 2 commits intoprocessing:mainfrom
Open
Add SVG export examples for various scenarios#1291hxrshxz wants to merge 2 commits intoprocessing:mainfrom
hxrshxz wants to merge 2 commits intoprocessing:mainfrom
Conversation
There was a problem hiding this comment.
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() |
Stefterv
approved these changes
Oct 17, 2025
Collaborator
|
Hi @SableRaf could you check if these examples are solid enough to explain how to use the SVG library? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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