fill

inline fun fill(shape: Shape, shading: Shading, blendingMode: BlendingMode = DEFAULT_BLENDING_MODE, shadow: Shadow? = null)

Fills the given Shape.

Parameters

shape

The shape that will be drawn with fill style. A shape can be either a Path or Shape. For simple shapes prefer using Shape if possible because it offers better drawing performance.

shading

The shading definition that describes how to fill the path. For example solid color or a gradient.

blendingMode

The blend mode that will be used when filling the shape

shadow

The shadow that will be drawn below the path