Gradient

sealed interface Gradient : Paint.Server(source)

A gradient with color stops, like the gradients of SVG. id is the id of the gradient in SVG documents.

Inheritors

Properties

Link copied to clipboard
abstract val id: String
Link copied to clipboard

the color space the colors are interpolated in, sRGB like SVG by default

Link copied to clipboard
abstract val spread: GradientSpread
Link copied to clipboard
abstract val stops: List<ColorStop>
Link copied to clipboard
open val svgId: String

the id of the gradient in SVG documents: id, or an id derived from the gradient when it has none

Link copied to clipboard
abstract val transform: Matrix44
Link copied to clipboard
abstract val units: PaintUnits
Link copied to clipboard
open override val value: ColorRGBa?

Functions

Link copied to clipboard
abstract fun source(): SourcePreset

the preset that generates the colors of this paint

Link copied to clipboard
abstract override fun toString(): String