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

Description Usage Arguments Value

View source: R/scale_rgb_luminoscity.R

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
aitoa.scale.rgb.luminosity(color, scale, limit = 255L, make.int = (limit > 1L))

Arguments

color

the r-g-b vector

scale

the scale value, in [-1,1]

limit

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

make.int

should the result be converted to integer?

Value

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


thomasWeise/aitoaEvaluate documentation built on Dec. 6, 2020, 1:22 p.m.