Companion

object Companion

The brushes built from values: the gradients, and one built from a java.awt.Paint.

Functions

Link copied to clipboard
fun horizontalGradient(vararg colorStops: Pair<Float, Color>): Brush

A gradient running left to right across the full width of what it decorates.

Link copied to clipboard
fun linearGradient(vararg colorStops: Pair<Float, Color>, start: Point2D, end: Point2D): Brush

A gradient running from start to end, both relative to the decorated box's top-left corner, so it stays where it is declared whatever size the box takes.

Link copied to clipboard
fun of(paint: Paint): Brush

A brush that is always paint, whatever size it is asked for.

Link copied to clipboard
fun radialGradient(vararg colorStops: Pair<Float, Color>): Brush

A gradient spreading from the center of what it decorates out to the nearer edge.

Link copied to clipboard
fun verticalGradient(vararg colorStops: Pair<Float, Color>): Brush

A gradient running top to bottom down the full height of what it decorates.