svg2p5 converts SVG markup into p5.js canvas code. It is based on Professor Cloud’s SVG to HTML5 Converter and the Canvg.js library.

    What svg2p5 is pretty good at:
  • Béziers made with pen tool.
  • Path elements with many points.
  • Strokes and fills.
  • Colors in HEX and RGBA.
    What svg2p5 sucks at (for now):
  • Native elements, like circle and rect.
  • Color gradients, shadows and opacity.
  • Anything to do with embedded text.
  • Clipping and masking of any kind.

And many more. Consider filing an issue or contributing to the project.