satCol: Modify a color's saturation

View source: R/colors.R

satColR Documentation

Modify a color's saturation

Description

Converts the RGB color to values in HSV space, then multiplies the saturation component (S) by the given multiplier, leaving the hue (H) and value (V) components as they were. The results is converted back to RGB strings before they are returned.

Usage

satCol(col = "#41ffc9", sat.mult = 1.25)

Arguments

col

an RGB color

sat.mult

saturation multiplier

Value

An RGB color string.

Examples

?

thartbm/SMCL documentation built on Oct. 23, 2022, 5:17 a.m.