colorChangeDarkness: Change the dark/brightness of a color

Description Usage Arguments Value Author(s) See Also

View source: R/colorChangeDarkness.R

Description

Function to yield darker or brighter variants of the same color by mixing this color with white or black

Usage

1

Arguments

col

color to change. Can be a R color name or a hexadecimal color specification

factor

decimal factor to darken/brighten the color with. Values < 1 lead to darker colors, values > 1 to brighter colors.

Value

hexadecimal code for the new color.

Author(s)

Jannis v. Buttlar

See Also

mixcolor


JBTools documentation built on May 29, 2017, 9:55 p.m.

Search within the JBTools package
Search all R packages, documentation and source code