Validated Rendering Context
constructor(attrs: StyleAttributes, palette: Palette)
Construct a ValidatedRenderingContext from the specified StyleAttributes and Palette. The context remains valid so long as the system color mode does not change.
Parameters
attrs
The complete StyleAttributes.
palette
The Palette, for interpreting the foreground and background colors for text rendition.