GradientStop

data class GradientStop(val offset: Float, val color: PdfColor)

One colour stop along a gradient.

Constructors

Link copied to clipboard
constructor(offset: Float, color: PdfColor)

Properties

Link copied to clipboard

resolved colour at this stop.

Link copied to clipboard

position along the gradient axis, in 0f..1f. The first stop is normally 0f and the last 1f; intermediate values determine the colour at that point.