# vispy.visuals.collections.agg_segment_collection module

Antigrain Geometry Segment Collection

This collection provides antialiased and accurate segments with caps. It consume x2 more memory than regular lines and is a bit slower, but the quality of the output is worth the cost.

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

  Bases: `Collection`

  Antigrain Geometry Segment Collection

  This collection provides antialiased and accurate segments with caps. It consume x2 more memory than regular lines and is a bit slower, but the quality of the output is worth the cost.

  append(P0, P1, itemsize=None, **kwargs)

    Append a new set of segments 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

      itemsize: int or None

        Size of an individual path

      caps list, array or 2-tuple

        Path start /end cap

      color list, array or 4-tuple

        Path color

      linewidth list, array or float

        Path linewidth

      antialias list, array or float

        Path antialias area

previous

vispy.visuals.collections.agg_point_collection module

next

vispy.visuals.collections.array_list module