This example demonstrates the use of p5.plotSvg's add-on-style API across a small 2x2 matrix:
- p5.js v1, global mode: plotSvg_addon_example_v1_global
- p5.js v1, instance mode: plotSvg_addon_example_v1_instance
- p5.js v2, global mode: plotSvg_addon_example_v2_global
- p5.js v2, instance mode: plotSvg_addon_example_v2_instance
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.
