Companion

object Companion

Functions

Link copied to clipboard
fun linearGradient(gradient: Gradient, startPoint: Point, endPoint: Point, tileMode: Shader.TileMode = Shader.TileMode.CLAMP): Shading

A linear gradient that varies along the line defined by the provided starting and ending points.

Link copied to clipboard
fun radialGradient(gradient: Gradient, center: Point, radius: Float, tileMode: Shader.TileMode = Shader.TileMode.CLAMP): Shading

A radial gradient given the center and radius.

Link copied to clipboard

Solid color shading.