SVG

load_shape()

p5.load_shape(filename)

Loads the given .svg file and converts it into PShape object.

Parameters:filename (str) – link to .svg file

shape()

p5.shape(shape, x=0, y=0)

Draws shapes to the display window

Parameters:
  • shape (PShape) – shape object
  • x (float) – x-coordinate of the shape
  • y (float) – y-coordinate of the shape