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

View source: R/fcn_misc.R

darkenR Documentation

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

Description

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

Usage

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 March 22, 2022, 5:08 p.m.