Back

TURTLE_PAPER Documentation

Introduction / Getting started

Controlling your turtle

Turtle properties

Exporting as SVG

TURTLE_PAPER

Export drawing as SVG

This small guide applies to paper.js in general, not just TURTLE_PAPER.
To export a paper.js drawing as SVG, run the code below when you want the project being exported.

Make sure to read the official paper.js docs.

// Export the current view as SVG. Returns an SVGElement by default.
paper.project.exportSVG();