colour.utilities.set_caching_enable#

colour.utilities.set_caching_enable(enable: bool)[source]#

Set Colour caching enabled state.

Parameters:

enable (bool) – Whether to enable Colour caching.

Examples

>>> with caching_enable(True):
...     print(is_caching_enabled())
...     set_caching_enable(False)
...     print(is_caching_enabled())
...
True
False