The shade's B value
The shade's G value
The shade's R value
The shade's hex value
The id of the shade
The index of the shade
The onHex value for this shade
The opacity of the shade
The shade's RGB array
Static
BLACKThe black shade
Static
DARK_The dark blue shade
Static
GRAYThe gray shade
Static
HALF_The half-black shade
Static
HALF_The half-white shade
Static
HALF_The half-white dark mode shade
Static
NEAR_The near black shade
Static
OFF_The off-black shade
Static
OFF_The off-white shade
Static
WHITEThe white shade
Static
WHITE_The white dark mode shade
Find a dark mode shade which meets the contrast ratio on these background shades
The background shades
The required contrast ratio
A dark mode shade meeting the contrast ratio requirement, or throws an exception if not found.
Calculate the contrast ratio between two shades.
Get a dark mode shade which meets the contrast ratio on these background shades
The background shades
The required contrast ratio
A dark mode shade meeting the contrast ratio requirements, or undefined if not found
Get a light mode shade which meets the contrast ratio on this background shade. Find the shade closest to this shade which meets the contrast ratio requirement against the background shade.
The required contrast ratio
A light mode shade meeting the contrast ratio requirement, or undefined if not found
Return true if the contrast ratio of this shade to all 'bgShades' meets or exceeds 'ratio'; otherwise, return false.
Mix this shade with another shade to produce a third shade.
The other shade to mix with this shade
The ratio; a value between 0 and 1 denoting how much of this shade verses the other shade in the resulting shade.
A third shade which is the mixture of this shade and the 'shade'.
Static
coreStatic
fromStatic
fromRGBStatic
fromRGBArrayStatic
get
A color shade.