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