Polyman Documentation - v3.1.0
Preparing search index...
helpers/terminal-background
relativeLuminance
Function relativeLuminance
relativeLuminance
(
rgb
:
Rgb
)
:
number
Relative luminance of a color, as defined by WCAG (0 is black, 1 is white).
Parameters
rgb
:
Rgb
The color
Returns
number
The luminance
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Polyman Documentation - v3.1.0
Loading...
Relative luminance of a color, as defined by WCAG (0 is black, 1 is white).