Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 965 Bytes

File metadata and controls

30 lines (22 loc) · 965 Bytes

p5.plotSvg Add-on Example

This example demonstrates the use of p5.plotSvg's add-on-style API across a small 2x2 matrix:

plotSvg_addon_example.png

The global-mode sketches export with:

beginRecordSvg("output.svg");
drawAddonExampleScene();
endRecordSvg();

The instance-mode sketches export with:

p.beginRecordSvg("output.svg");
drawAddonExampleScene();
p.endRecordSvg();

Each project loads the generated dist/p5.plotSvg.js build so the example matches the add-on release surface.