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:
Pnp.array

Vertices positions of the path(s) to be added

itemsize: int or None

Size of an individual path

capslist, array or 2-tuple

Path start /end cap

colorlist, array or 4-tuple

Path color

linewidthlist, array or float

Path linewidth

antialiaslist, array or float

Path antialias area