contrast

Functionality for color contrast accessibility checks.

Source:

Methods

(inner) flattenColors()

Source:

Blends the given colors (RGBA dicts) using the "over" paint operation.

(inner) mixColors()

Source:

Mixes the given colors (RGBA dicts) at the given amount (0 to 1).

(inner) srgbLuminance()

Source:

Calculates the luminance of the given RGB color.