colour.utilities.caching_enable#
- class colour.utilities.caching_enable(enable: bool)[source]#
Bases:
objectDefine a context manager and decorator to temporarily set the Colour caching enabled state.
- Parameters:
enable (bool) – Whether to enable or disable Colour caching.
- __exit__(*args: Any) None[source]#
Exit the caching context manager and restore the previous Colour caching state.
- Parameters:
args (Any)
- Return type:
None
- __call__(function: Callable) Callable[source]#
Decorate and call the specified function with caching control.
- __weakref__#
list of weak references to the object