validate

fun validate(palette: Palette): ValidatedStylePattern

Validate the receiver against the supplied palette. If validation succeeds, then answer a ValidatedStylePattern that includes the validated source and all attributes of the rendering context.

Return

The ValidatedStylePattern.

Parameters

palette

The Palette, for interpreting the foreground and background colors for text rendition.

Throws

If the palette is missing any referenced colors.