Description Usage Arguments Value
View source: R/scale_rgb_luminoscity.R
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
1 | aitoa.scale.rgb.luminosity(color, scale, limit = 255L, make.int = (limit > 1L))
|
color |
the r-g-b vector |
scale |
the scale value, in |
limit |
the maximum permitted value for each rgb-coordinate: defaults to 255 |
make.int |
should the result be converted to integer? |
a color with similar chromotographical properties but either lighter (scale>0) or darker (scale<0) complexion.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.