colour.utilities.is_sibling¶

colour.utilities.is_sibling(element, mapping)[source]

Returns whether given element type is present in given mapping types.

Parameters
• element (object) – Element to check if its type is present in the mapping types.

• mapping (dict) – Mapping.

Returns

Whether given element type is present in given mapping types.

Return type

bool