validate

fun validate(palette: Palette): ValidatedRenderingContext

Validate the receiver against the supplied palette. If validation succeeds, then answer a ValidatedRenderingContext that includes all attributes of the receiver.

Return

The ValidatedRenderingContext.

Parameters

palette

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

Throws

If the palette is missing any referenced colors.