rgb.scale.luminosity: Scale the Luminosity of a Color

Description Usage Arguments Value

Description

The luminosity of a color is scaled in a range of [-1,1], where -1 means black, 1 means white, and 0 means the color at its current luminosity. A value in (0, 1] will make the color brighter while trying to preserve its chromotographical properties. A value in [-1, 0) will make the color darker while trying to preserve its chromotographical properties. See https://stackoverflow.com/questions/6615002

Usage

1
rgb.scale.luminosity(r, g, b, scale, limit = 255)

Arguments

r

the red value

g

the green value

b

the blue value

scale

the scale value, in [-1,1]

limit

the maximum permitted value for each rgb-coordinate: defaults to 255

Value

a color with similar chromotographical properties but either lighter (scale>0) or darker (scale<0) complexion.


thomasWeise/plotteR documentation built on May 29, 2019, 5:41 a.m.