colour.plotting.common.filter_RGB_colourspaces#
- colour.plotting.common.filter_RGB_colourspaces(filterers: colour.models.rgb.rgb_colourspace.RGB_Colourspace | str | collections.abc.Sequence[colour.models.rgb.rgb_colourspace.RGB_Colourspace | str], allow_non_siblings: bool = True) Dict[str, colour.models.rgb.rgb_colourspace.RGB_Colourspace][source]#
Return the RGB colourspaces matching given filterers.
- Parameters
filterers (colour.models.rgb.rgb_colourspace.RGB_Colourspace | str | collections.abc.Sequence[colour.models.rgb.rgb_colourspace.RGB_Colourspace | str]) – Filterer or
colour.RGB_Colourspaceclass instance (which is passed through directly if its type is one of the mapping element types) or list of filterers.filtererselements 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