Linear

data class Linear(val startX: Float, val startY: Float, val endX: Float, val endY: Float, val stops: List<Paint.Gradient.Stop>) : Paint.Gradient

Constructors

Link copied to clipboard
constructor(startX: Float, startY: Float, endX: Float, endY: Float, vararg stops: Paint.Gradient.Stop)
constructor(startX: Float, startY: Float, endX: Float, endY: Float, stops: List<Paint.Gradient.Stop>)

Properties

Link copied to clipboard
val endX: Float
Link copied to clipboard
val endY: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val stops: List<Paint.Gradient.Stop>

Functions

Link copied to clipboard
fun Paint.toAndroid(context: Context): Paint

Converts a Krayon Paint into an AndroidPaint.