colour.graph.conversion_path#

colour.graph.conversion_path(source: str, target: str) List[Callable][source]#

Generate the conversion path from the source node to the target node in the automatic colour conversion graph.

Parameters:
  • source (str) – Source node.

  • target (str) – Target node.

Returns:

Conversion path from the source node to the target node, i.e., a list of conversion function callables.

Return type:

list

Examples

>>> conversion_path("cie lab", "cct")
...
[<function Lab_to_XYZ at 0x...>, <function XYZ_to_UCS at 0x...>, <function UCS_to_uv at 0x...>, <function uv_to_CCT at 0x...>]