Companion

object Companion

Functions

Link copied to clipboard
@JvmName(name = "fromColors")
operator fun invoke(colors: List<KalugaColor>, orientation: GradientStyle.Linear.Orientation = Orientation.LEFT_RIGHT): GradientStyle.Linear

Creates a Linear gradient style using a list of KalugaColor and an Orientation

@JvmName(name = "fromColorPoints")
operator fun invoke(colorPoints: List<GradientStyle.ColorPoint>, orientation: GradientStyle.Linear.Orientation = Orientation.LEFT_RIGHT): GradientStyle.Linear

Creates a Linear gradient style using a list of ColorPoint and an Orientation