brighten: Brighten up a Color

View source: R/utils_plot.R

brightenR Documentation

Brighten up a Color

Description

Brighten up a specified color (e.g., the swarm color in apa_beeplot()). This function is not exported.

Usage

brighten(col, factor)

Arguments

col

Colour to be brightened up. Can be anything that is digestible by col2rgb().

factor

Numeric. The rate with which the color channel should be boosted. Must be in the range between 0 and 1.

Value

A character vector as returned by rgb().


papaja documentation built on Sept. 29, 2023, 9:07 a.m.