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
| Name | Type | Notes |
|---|---|---|
color | PropRef |
Example
paint: solidColor(p('color'))