Shifts each colour's HSL saturation by amount, clamped to [0, 1].
color_saturate() and color_desaturate() shift in opposite
directions by the same amount, mirroring color_lighten()/
color_darken()'s own paired-verb shape.
See also
Other color helpers:
color_alpha(),
color_greyscale(),
color_invert(),
color_jitter(),
color_lighten(),
color_mix(),
color_rotate_hue()
Examples
color_saturate("slategray", amount = 0.3)
#> [1] "#4A80B6"
color_desaturate(palette_manual(index = 1), amount = 0.5)
#> [1] "#5F5F5F" "#AEAFB0" "#444444" "#BF9E64" "#B57756"
draw(effect_swatch(color = color_desaturate(palette_manual(index = 1), amount = 0.5)))