Color
case Rgb(Int32, Int32, Int32)Colours and draw commands.
Plain immutable data shared by the Canvas effect and its handlers. Nothing in this
file knows that a window exists, which is what lets tests assert on what would be
drawn without opening one.
Instances
Definitions
The WCAG 2.1 contrast ratio between two colours, from 1.0 to 21.0.
Order does not matter. As a rule of thumb, body text needs at least 4.5 and shapes and large text need at least 3.0 to stay legible.
Creates a grayscale color with identical red, green, and blue components.
Relative luminance, from 0.0 (black) to 1.0 (white), per WCAG 2.1.