Shadow

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

Stores shadow properties.

Parameters

radiusDp

the blur radius (in dp).

dxDp

the horizontal offset (in dp).

dyDp

the vertical offset (in dp).

color

the color.

Constructors

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

Functions

Link copied to clipboard

Updates paint’s shadow layer.