Skip to content

java library to provide optimized SVG drawing in Processing using PShape groups

Notifications You must be signed in to change notification settings

labatrockwell/LAB-SVGp5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

LAB-SVGp5

LAB-SVGp5 is a Processing library intended to optimize Processing's rendering of SVG elements as PShapes.

Since Processing typically turns an SVG into a PShape, it is conventionally drawn with a shape() call. However, when drawing many instances of the SVG, this can slow down render times, as is documented in Processing's reference.

The solution here is to add multiple instances of the SVG to a PShape group, which can then be rendered with a single call to shape() and reduce the expensive I/O to the GPU.

The challenge is that SVGs themselves contain multiple shapes as well as colors, fills, etc. The goal of this library is to combine multiple PShapes into a group, and thereby significantly reduce the render time when an SVG is being redrawn many times.

About

java library to provide optimized SVG drawing in Processing using PShape groups

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published