colour.utilities.is_caching_enabled#
- colour.utilities.is_caching_enabled() bool[source]#
Determine whether Colour caching is enabled.
The caching state is controlled by the global COLOUR_SCIENCE__DISABLE_CACHING environment variable and can be temporarily modified using the
set_caching_enable()function or thecaching_enablecontext manager.- Returns:
Whether Colour caching is enabled.
- Return type:
Examples
>>> with caching_enable(False): ... is_caching_enabled() False >>> with caching_enable(True): ... is_caching_enabled() True