colour.utilities.copy_definition#

colour.utilities.copy_definition(definition: Callable, name: Optional[str] = None) Callable[source]#

Copy a definition using the same code, globals, defaults, closure, and name.

Parameters:
  • definition (Callable) – Definition to be copied.

  • name (Optional[str]) – Optional definition copy name.

Returns:

Definition copy.

Return type:

Callable