0.11.2
  • Gallery
  • Tutorial
  • API
  • Site
      • Introduction
      • Release notes
      • Installing
      • Example gallery
      • Tutorial
      • API reference
      • Citing
      • Archive
  • Page
      • seaborn.desaturate

seaborn.desaturate¶

seaborn.desaturate(color, prop)¶

Decrease the saturation channel of a color by some percent.

Parameters
colormatplotlib color

hex, rgb-tuple, or html color name

propfloat

saturation channel of color will be multiplied by this value

Returns
new_colorrgb tuple

desaturated color code in RGB tuple representation

Back to top

© Copyright 2012-2021, Michael Waskom. Created using Sphinx 3.3.1.