PrimitiveArtist
- class compas.artists.PrimitiveArtist(*args, **kwargs)[source]
Bases:
Artist
Base class for artists for geometry primitives.
- Parameters
primitive (
compas.geometry.Primitive
) – The geometry of the primitive.color (tuple[float, float, float], optional) – The RGB components of the base color of the primitive.
- Attributes
primitive (
compas.geometry.Primitive
) – The geometric primitive associated with the artist.color (tuple[float, float, float]) – The color of the object.
- Class Attributes
default_color (tuple[float, float, float]) – The default rgb color value of the primitive.
Inherited Methods
Build an artist corresponding to the item type.
Build an artist with the given type.
Clear all objects from the view.
The main drawing method.
Drawing method for drawing an entire collection of objects.
Redraw the view.
Register an artist type to a data type.