shade

shade(color, scale=1)[source]

Scale the luminance channel of the input color.

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

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

Returns

color – The new RGB tuple.