We use this internal utility function to brighten up a specified colour (e.g., the swarm colour in apa_beeplot
).
brighten(col, factor)
Colour to be brightened up. Can be anything that is digestible by col2rgb
.
Numeric The rate with which the color channel should be boosted. Must be in the range between 0 and 1.
A character vector as returned by rgb
.