Companion

object Companion

Functions

Link copied to clipboard
@JvmName(name = "fromColors")
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

@JvmName(name = "fromColorPoints")
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