RadialGradient
data class RadialGradient(val center: Vector2, val radius: Double, val focal: Vector2 = center, val focalRadius: Double = 0.0, val stops: List<ColorStop>, val units: PaintUnits = PaintUnits.BOUNDS, val spread: GradientSpread = GradientSpread.PAD, val transform: Matrix44 = Matrix44.IDENTITY, val id: String = "", val interpolation: GradientInterpolation = GradientInterpolation.SRGB) : Paint.Gradient(source)
A radial gradient from the circle at focal with focalRadius to the circle at center with radius, like SVG's radialGradient
Constructors
Link copied to clipboard
constructor(center: Vector2, radius: Double, focal: Vector2 = center, focalRadius: Double = 0.0, stops: List<ColorStop>, units: PaintUnits = PaintUnits.BOUNDS, spread: GradientSpread = GradientSpread.PAD, transform: Matrix44 = Matrix44.IDENTITY, id: String = "", interpolation: GradientInterpolation = GradientInterpolation.SRGB)