vispy.visuals.collections.raw_polygon_collection module

class vispy.visuals.collections.raw_polygon_collection.RawPolygonCollection(user_dtype=None, transform=None, vertex=None, fragment=None, **kwargs)[source]

Bases: vispy.visuals.collections.collection.Collection

append(points, **kwargs)[source]

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
pointsnp.array

Vertices composing the triangles

colorlist, array or 4-tuple

Path color