Shadow

data class Shadow(radiusDp: Float, xDp: Float = 0.0f, yDp: Float = 0.0f, color: Int = Defaults.SHADOW_COLOR)

Stores shadow properties.

Parameters

radiusDp

the blur radius (in dp).

xDp

the horizontal offset (in dp).

yDp

the vertical offset (in dp).

color

the color.

Constructors

Link copied to clipboard
constructor(radiusDp: Float, xDp: Float = 0.0f, yDp: Float = 0.0f, color: Int = Defaults.SHADOW_COLOR)

Functions

Link copied to clipboard

Updates paint’s shadow layer.