solidColor

A flat fill in one color prop.

solidColor(color: PropRef): Paint

Import gradients from shaders/std and use gradients.solidColor.

The color's alpha passes through, so a half-transparent color gives a half-transparent layer.

Parameters

NameTypeNotes
colorPropRef

Example

paint: solidColor(p('color'))

Used by

SolidColor