Function

Fill

Creates a solid color Fill.

Fill

Source set: Common
@ExperimentalFoundationStyleApi @Stable public fun Fill(color: Color): Fill

Creates a solid color Fill.

Parameters

color color to fill with

Fill

Source set: Common
@ExperimentalFoundationStyleApi @Stable public fun Fill(brush: Brush): Fill

Creates a brush Fill.

Parameters

brush gradient or shader brush to fill with

Fill

Source set: Common
public fun Fill(value: Any?): Fill?

Converts value to a Fill if it is a supported fill type. Returns null otherwise.

Parameters

value object to convert to a Fill

Content updated: