colour_visuals.VisualDaylightLocus#

class colour_visuals.VisualDaylightLocus(method: Literal['CIE 1931', 'CIE 1960 UCS', 'CIE 1976 UCS'] | str = 'CIE 1931', mireds: bool = False, colour: ArrayLike | None = None, opacity: float = 1, thickness: float = 1)[source]#

Bases: MixinPropertyColour, MixinPropertyMethod, MixinPropertyOpacity, MixinPropertyThickness, Visual

Create a Daylight Locus visual.

Parameters:
  • method (Literal['CIE 1931', 'CIE 1960 UCS', 'CIE 1976 UCS'] | str) – Daylight Locus method.

  • mireds (bool) – Whether to use micro reciprocal degrees for the iso-temperature lines.

  • 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.

Attributes

  • method

  • mireds

  • colour

  • opacity

  • thickness

Methods

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 = VisualDaylightLocus()
...     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-daylight-locus
__init__(method: Literal['CIE 1931', 'CIE 1960 UCS', 'CIE 1976 UCS'] | str = 'CIE 1931', mireds: bool = False, colour: ArrayLike | None = None, opacity: float = 1, thickness: float = 1) None[source]#
Parameters:
  • method (Literal['CIE 1931', 'CIE 1960 UCS', 'CIE 1976 UCS'] | str)

  • mireds (bool)

  • colour (ArrayLike | None)

  • opacity (float)

  • thickness (float)

Return type:

None

property mireds: bool#

Getter and setter property for the mireds state.

Parameters:

value – Value to set the mireds state with.

Returns:

Mireds state.

Return type:

bool

update() None[source]#

Update the visual.

Return type:

None