seaborn.desaturate#

seaborn.desaturate(color, prop)[源代码]#

将颜色的饱和度通道减少一定百分比。

参数:
颜色matplotlib 颜色

十六进制、RGB 元组或 HTML 颜色名称

属性浮动

颜色饱和度通道将乘以此值

返回:
新颜色rgb 元组

RGB 元组表示中的去饱和颜色代码