paintStyle
A shade style that paints fills and strokes with sources, such as gradients:
drawer.shadeStyle = paintStyle {
fill(LinearGradientPaint(stops = listOf(ColorStop(0.0, ColorRGBa.PINK), ColorStop(1.0, ColorRGBa.BLUE))))
stroke(NoiseSource(), PaintUnits.OBJECT, transform = Matrix44.scale(100.0, 100.0, 1.0))
}Content copied to clipboard