:mod:`vectorio` =============== .. py:module:: vectorio .. autoapi-nested-parse:: Lightweight 2d shapes for displays .. py:class:: Circle(radius: int) Circle is positioned on screen by its center point. :param radius: The radius of the circle in pixels .. attribute:: radius :annotation: :int The radius of the circle in pixels. .. py:class:: Polygon(points: List[Tuple[int, int]]) Represents a closed shape by ordered vertices :param points: Vertices for the polygon .. attribute:: points :annotation: :List[Tuple[int, int]] Set a new look and shape for this polygon .. py:class:: Rectangle(width: int, height: int) Represents a rectangle by defining its bounds :param width: The number of pixels wide :param height: The number of pixels high .. py:class:: VectorShape(shape: Union[Polygon, Rectangle, Circle], pixel_shader: Union[displayio.ColorConverter, displayio.Palette], x: int = 0, y: int = 0) Binds a vector shape to a location and pixel color :param shape: The shape to draw. :param pixel_shader: The pixel shader that produces colors from values :param x: Initial x position of the center axis of the shape within the parent. :param y: Initial y position of the center axis of the shape within the parent. .. attribute:: x :annotation: :int X position of the center point of the shape in the parent. .. attribute:: y :annotation: :int Y position of the center point of the shape in the parent. .. attribute:: pixel_shader :annotation: :Union[displayio.ColorConverter, displayio.Palette] The pixel shader of the shape.