Gradient

sealed class Gradient : Paint

Inheritors

Types

Link copied to clipboard
data class Linear(val startX: Float, val startY: Float, val endX: Float, val endY: Float, val stops: List<Paint.Gradient.Stop>) : Paint.Gradient
Link copied to clipboard
data class Radial(val centerX: Float, val centerY: Float, val radius: Float, val stops: List<Paint.Gradient.Stop>) : Paint.Gradient
Link copied to clipboard
data class Stop(val offset: Float, val color: Color)
Link copied to clipboard
data class Sweep(val centerX: Float, val centerY: Float, val stops: List<Paint.Gradient.Stop>) : Paint.Gradient

Properties

Link copied to clipboard

Functions

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

Converts a Krayon Paint into an AndroidPaint.