colour.algebra.spow_enable#
- class colour.algebra.spow_enable(enable: bool)[source]#
Context manager and decorator for temporarily setting the state of Colour safe/symmetrical power function.
This utility provides both context manager and decorator functionality to temporarily enable or disable the safe/symmetrical power function used throughout the Colour library. When enabled, power operations use a symmetrical implementation that handles negative values appropriately for colour science computations.
- Parameters:
enable (bool) – Whether to enable or disable the Colour safe/symmetrical power function for the duration of the context or decorated function.
Methods
__init__(enable)