colour.algebra.set_spow_enable#

colour.algebra.set_spow_enable(enable: bool)[source]#

Set Colour safe / symmetrical power function enabled state.

Parameters

enable (bool) – Whether to enable Colour safe / symmetrical power function.

Examples

>>> with spow_enable(is_spow_enabled()):
...     print(is_spow_enabled())
...     set_spow_enable(False)
...     print(is_spow_enabled())
True
False