vispy.visuals.collections.raw_segment_collection module#

Raw Segment Collection

This collection provides fast raw (& ugly) line segments.

class vispy.visuals.collections.raw_segment_collection.RawSegmentCollection(user_dtype=None, transform=None, vertex=None, fragment=None, **kwargs)#

Bases: Collection

Raw Segment Collection

This collection provides fast raw (& ugly) line segments.

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

closed: bool

Whether path(s) is/are closed

itemsize: int or None

Size of an individual path

colorlist, array or 4-tuple

Path color