Skip to content

Conversation

hxrshxz
Copy link

@hxrshxz hxrshxz commented Oct 16, 2025

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 examples directory with 5 working examples:

  1. NoScreenDisplay - Export SVG without opening a display window
  2. WithScreenDisplay - Export SVG while displaying on screen using beginRecord()
  3. SingleFrameFromAnimation - Capture a single frame from an animated sketch
  4. ThreeDGeometry - Export 3D geometry as flattened SVG using beginRaw()
  5. UsingCreateGraphics - Programmatically create SVG files using createGraphics()

Closes

Fixes #1290

@Copilot Copilot AI review requested due to automatic review settings October 16, 2025 11:58
Copy link

@Copilot Copilot AI left a 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()
Copy link

@Copilot Copilot AI left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants