darken: Make a color (given as name or in RGB) darker by factor x =...

Description Usage Arguments Value

View source: R/fcn_misc.R

Description

Make a color (given as name or in RGB) darker by factor x = [0 = black, 1=unchanged]

Usage

1
darken(color, factor = 0.8)

Arguments

color

A color as understood by col2rgb

factor

Between 0 (make black) and 1 (leave color as is)

Value

darkened color


PTXQC documentation built on June 2, 2021, 5:07 p.m.