desaturate: Pastelify a color (make a color more pastel)

View source: R/utils_color.R

desaturateR Documentation

Pastelify a color (make a color more pastel)

Description

Lower a color's saturation by a given percent in the HSV color system

Usage

desaturate(color, s = 0.3)

Arguments

color

Color, vector: Color(s) to operate on

s

Float: Decrease saturation by this fraction. Default = .3, which means if saturation of given color is 1, it will become .7

Value

List of adjusted colors

Author(s)

EDG

Examples

## Not run: 
color <- c("red", "green", "blue")
color_p <- desaturate(color)

## End(Not run)

egenn/rtemis documentation built on June 14, 2025, 11:54 p.m.