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

Adds gradient export to SVG library #770

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

Conversation

tracerstar
Copy link

Adding an extension handler to the SVG library to allow linear and radial gradients to export as SVG

The extension handler is a copy of https://gist.github.com/msteiger/4509119 by Martin Steiger with minor changes for Processing

Several classes and methods in PShapeSVG and PShapeJava2D have been made public or modified to support the export of gradients

Current SVG export of gradients results in fill:none on the shapes, leaving everything filled black. This adds gradients into the export handler, allowing fill:url(#gradientID) to work as expected.

…dial gradients to export as SVG

The extension handler is a copy of https://gist.github.com/msteiger/4509119 by Martin Steiger with minor changes for Processing
Several classes and methods in PShapeSVG and PShapeJava2D have been made public or modified to support the export of gradients
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.

None yet

1 participant