brush

abstract fun brush(@FloatRange(from = 0.0, to = 1.0) progress: Float, size: Size): Brush(source)

Return a Brush to draw for the given progress and size.

Parameters

progress

the current animated progress in the range of 0f..1f.

size

The size of the current layout to draw in.