desaturate_color: Desaturate colors by reducing Saturation in HSV space

View source: R/adjustment.R

desaturate_colorR Documentation

Desaturate colors by reducing Saturation in HSV space

Description

Desaturate colors by reducing Saturation in HSV space

Usage

desaturate_color(color_vec, desat_frac = 0.5, sat_floor = 0.1)

Arguments

color_vec

a vector of hex or R colors

deval_frac

numeric (0 to 1) - the amount to subtract from Saturation in HSV

val_floor

numeric (0 to 1) - a minimum Saturation to retain for each color

Value

a character vector of desaturated hex colors


hypercompetent/colorway documentation built on April 2, 2024, 1:44 a.m.