colour.plotting.common.filter_RGB_colourspaces#
- colour.plotting.common.filter_RGB_colourspaces(filterers: RGB_Colourspace | LiteralRGBColourspace | str | Sequence[RGB_Colourspace | LiteralRGBColourspace | str], allow_non_siblings: bool = True) Dict[str, RGB_Colourspace] [source]#
Return the RGB colourspaces matching given filterers.
- Parameters:
filterers (RGB_Colourspace | LiteralRGBColourspace | str | Sequence[RGB_Colourspace | LiteralRGBColourspace | str]) – Filterer or
colour.RGB_Colourspace
class instance (which is passed through directly if its type is one of the mapping element types) or list of filterers.filterers
elements can also be of any form supported by thecolour.plotting.common.filter_passthrough()
definition.allow_non_siblings (bool) – Whether to allow non-siblings to be also passed through.
- Returns:
Filtered RGB colourspaces.
- Return type: