saturate

saturate(color, scale=0.5)[source]

Scale the saturation channel of the input color.

Parameters
  • color (color-spec) – The color. Sanitized with to_rgb.

  • scale (float, optoinal) – The HCL saturation channel is multiplied by this value.

Returns

color – The new RGB tuple.