# vispy.visuals.collections.agg_path_collection module

Antigrain Geometry Path Collection

This collection provides antialiased and accurate paths with caps and joins. It is memory hungry (x8) and slow (x.25) so it is to be used sparingly, mainly for thick paths where quality is critical.

class vispy.visuals.collections.agg_path_collection.AggPathCollection(user_dtype=None, transform=None, vertex=None, fragment=None, **kwargs)

  Bases: `Collection`

  Antigrain Geometry Path Collection

  This collection provides antialiased and accurate paths with caps and joins. It is memory hungry (x8) and slow (x.25) so it is to be used sparingly, mainly for thick paths where quality is critical.

  append(P, closed=False, itemsize=None, **kwargs)

    Append a new set of vertices to the collection.

    For kwargs argument, n is the number of vertices (local) or the number of item (shared)

    Parameters:
      P np.array

        Vertices positions of the path(s) to be added

      closed: bool

        Whether path(s) is/are closed

      itemsize: int or None

        Size of an individual path

      caps list, array or 2-tuple

        Path start /end cap

      join list, array or float

        path segment join

      color list, array or 4-tuple

        Path color

      miter_limit list, array or float

        Miter limit for join

      linewidth list, array or float

        Path linewidth

      antialias list, array or float

        Path antialias area

  draw(mode='triangles')

    Draw collection

previous

vispy.visuals.collections.agg_fast_path_collection module

next

vispy.visuals.collections.agg_point_collection module