invoke
operator fun invoke(colors: List<KalugaColor>, radius: Float, centerPoint: GradientStyle.CenterPoint = CenterPoint(0.5f, 0.5f)): GradientStyle.Radial
Creates a Radial gradient style using a list of KalugaColor, a range, and a CenterPoint
Return
the Radial gradient
Parameters
colors
the list of KalugaColor on the gradient. Will be spread evenly across the gradient
radius
the radius in scalable pixels
at which the gradient stops
centerPoint
the CenterPoint from which the gradient radiates out
Throws
if colors size is smaller than 2
operator fun invoke(colorPoints: List<GradientStyle.ColorPoint>, radius: Float, centerPoint: GradientStyle.CenterPoint = CenterPoint(0.5f, 0.5f)): GradientStyle.Radial
Creates a Radial gradient style using a list of ColorPoint, a range, and a CenterPoint
Return
the Radial gradient
Parameters
colorPoints
the list of ColorPoint on the gradient
radius
the radius in scalable pixels
at which the gradient stops
centerPoint
the CenterPoint from which the gradient radiates out