LinearGradient
- Common/All
- Android/JVM
-
Cmn
class LinearGradient : ShaderBrush
kotlin.Any | |||
↳ | androidx.compose.ui.graphics.Brush | ||
↳ | androidx.compose.ui.graphics.ShaderBrush | ||
↳ | androidx.compose.ui.graphics.LinearGradient |
Brush implementation used to apply a linear gradient on a given Paint
Summary
Public properties
intrinsicSize
open val intrinsicSize: Size
Return the intrinsic size of the Brush
. If the there is no intrinsic size (i.e. filling bounds with an arbitrary color) return Size.Unspecified
. If there is no intrinsic size in a single dimension, return Size
with Float.NaN
in the desired dimension.