ShapeArtist

class compas_ghpython.artists.ShapeArtist(shape, color=None)[source]

Bases: compas_ghpython.artists._artist.BaseArtist

Base class for artists for geometric shapes.

Parameters
  • shape (compas.geometry.Shape) – The instance of the shape.

  • color (3-tuple, optional) – The RGB components of the base color of the shape.

Attributes
  • shape (compas.geometry.Shape) – A reference to the geometry of the shape.

  • name (str) – The name of the shape.

  • color (tuple) – The RGB components of the base color of the shape.

Methods

__init__(shape[, color])

Initialize self.

draw()

draw_collection(collection)