colour_visuals.VisualPointerGamut3D#

class colour_visuals.VisualPointerGamut3D(model: LiteralColourspaceModel | str = 'CIE xyY', colour: ArrayLike | None = None, opacity: float = 0.5, thickness: float = 1, **kwargs: Any)[source]#

Bases: MixinPropertyColour, MixinPropertyKwargs, MixinPropertyModel, MixinPropertyOpacity, MixinPropertyThickness, Visual

Create a 3D Pointer’s Gamut visual.

Parameters:
  • model (LiteralColourspaceModel | str) – Colourspace model, see colour.COLOURSPACE_MODELS attribute for the list of supported colourspace models.

  • colour (ArrayLike | None) – Colour of the visual, if None, the colour is computed from the visual geometry.

  • opacity (float) – Opacity of the visual.

  • thickness (float) – Thickness of the visual lines.

  • kwargs (Any)

Attributes

  • model

  • colour

  • opacity

  • thickness

Methods

Parameters:
  • kwargs (Any) – See the documentation of the supported conversion definitions.

  • model (LiteralColourspaceModel | str)

  • colour (ArrayLike | None)

  • opacity (float)

  • thickness (float)

Examples

>>> import os
>>> from colour.utilities import suppress_stdout
>>> from wgpu.gui.auto import WgpuCanvas
>>> with suppress_stdout():
...     canvas = WgpuCanvas(size=(960, 540))
...     scene = gfx.Scene()
...     scene.add(
...         gfx.Background(
...             None, gfx.BackgroundMaterial(np.array([0.18, 0.18, 0.18]))
...         )
...     )
...     visual = VisualPointerGamut3D()
...     camera = gfx.PerspectiveCamera(50, 16 / 9)
...     camera.show_object(visual, up=np.array([0, 0, 1]), scale=1.25)
...     scene.add(visual)
...     if os.environ.get("CI") is None:
...         gfx.show(scene, camera=camera, canvas=canvas)
visual-pointer-gamut-3-d
__init__(model: LiteralColourspaceModel | str = 'CIE xyY', colour: ArrayLike | None = None, opacity: float = 0.5, thickness: float = 1, **kwargs: Any) None[source]#
Parameters:
  • model (LiteralColourspaceModel | str)

  • colour (ArrayLike | None)

  • opacity (float)

  • thickness (float)

  • kwargs (Any)

Return type:

None

update() None[source]#

Update the visual.

Return type:

None