vectorio

Lightweight 2d shapes for displays

class vectorio.Circle(radius: int)
radius :int

The radius of the circle in pixels.

class vectorio.Polygon(points: List[Tuple[int, int]])
points :List[Tuple[int, int]]

Set a new look and shape for this polygon

class vectorio.Rectangle(width: int, height: int)
class vectorio.VectorShape(shape: Polygon, pixel_shader: displayio.Palette, x: int = 0, y: int = 0)
x :int

X position of the center point of the shape in the parent.

y :int

Y position of the center point of the shape in the parent.

pixel_shader :displayio.Palette

The pixel shader of the shape.