fade_color: Fade colors by reducing Value in HSV space

View source: R/adjustment.R

fade_colorR Documentation

Fade colors by reducing Value in HSV space

Description

Fade colors by reducing Value in HSV space

Usage

fade_color(color_vec, deval_frac = 0.5, val_floor = 0.1)

Arguments

color_vec

a vector of hex or R colors

deval_frac

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

val_floor

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

Value

a character vector of faded hex colors


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