UNPKG

p5.js-svg

Version:

The main goal of p5.SVG is to provide a SVG runtime for p5.js, so that we can draw using p5's powerful API in \<svg\>, save things to svg file and manipulating existing SVG file without rasterization.

58 lines (43 loc) 608 B
## p5.js-svg's API # New API ### Rendering - createSVG(width, height) ### IO - saveSVG - saveFrames - noSVG ## Compatible (in SVG and Canvas) API covered with unit tests ### Shape #### 2d_primitives - arc - ellipse - line - point - quad - rect - triangle #### Attributes - strokeWeight - strokeCap - strokeJoin - ellipseMode - rectMode - smooth - noSmooth #### Vertex - beginContour - beginShape - bezierVertex - curveVertex - endContour - endShape - quadraticVertex - vertex #### Curves - bezier() - bezierPoint() - bezierTangent() - curve() - curveTightness() - curvePoint() - curveTangent()