make_shades: Make shades Given a color make 'n' lighter or darker shades

View source: R/colors.R

make_shadesR Documentation

Make shades Given a color make n lighter or darker shades

Description

Make shades Given a color make n lighter or darker shades

Usage

make_shades(color, n, lighter = TRUE)

Arguments

color

The color to make shades of

n

The number of shades to make

lighter

Whether to make lighter (TRUE) or darker (FALSE) shades

Value

A vector of n color hex codes

Examples

# Five lighter shades
make_shades("goldenrod", 5)
# Five darker shades
make_shades("goldenrod", 5, lighter = FALSE)

jtrampush/npsych.data documentation built on Feb. 25, 2025, 12:30 a.m.