GradientPoint

data class GradientPoint(val x: Float, val y: Float)(source)

A position as fractions of a gradient's bounds: (0, 0) is the top-left corner and (1, 1) the bottom-right. Values outside 0..1 sit outside the bounds.

Constructors

Link copied to clipboard
constructor(x: Float, y: Float)

Properties

Link copied to clipboard
val x: Float

Horizontal fraction, increasing from left to right.

Link copied to clipboard
val y: Float

Vertical fraction, increasing from top to bottom.