luminance: Get perceptual luminance estimate from RGB values

Description Usage Arguments See Also Examples

View source: R/plotting.R

Description

This will calculate an estimate of percieved luminance when provided a vector of RGB values, in that order.

Usage

1

Arguments

rgb

numeric vector of RGB values. Example: c(0,127,255)

See Also

rgb col2rgb hcl

Other graphics: alpha_override

Examples

1
2
getLuminance(c(0,127,255))
getLuminance(as.vector(col2rgb("gray80")))

iamamutt/mejr documentation built on May 18, 2019, 1:27 a.m.