of

fun of(paint: Paint): Brush

A brush that is always paint, whatever size it is asked for.

Compared by identity: a paint built inline is a new declaration on every recomposition, so hoist it into a remember.

Return

a brush resolving to paint at every size.

Parameters

paint

the fill to use, with the decorated box's top-left corner as the origin.