Polyman Documentation - v3.1.0
Preparing search index...
helpers/terminal-background
backgroundFromRgb
Function backgroundFromRgb
backgroundFromRgb
(
rgb
:
Rgb
)
:
Background
Decides if a background color is light.
Parameters
rgb
:
Rgb
The background color
Returns
Background
'light' when the luminance is above 0.5
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Polyman Documentation - v3.1.0
Loading...
Decides if a background color is light.