Radial

data class Radial(val colorSpace: ColorSpace, val background: RgbColor?, val bbox: Rectangle?, val coords: DoubleArray, val domain: DoubleArray, val function: PdfFunction, val extendStart: Boolean, val extendEnd: Boolean) : PdfShading

Type 3 radial shading. Gradient between two circles: (x0, y0, r0) and (x1, y1, r1) with t running across domain.

Constructors

Link copied to clipboard
constructor(colorSpace: ColorSpace, background: RgbColor?, bbox: Rectangle?, coords: DoubleArray, domain: DoubleArray, function: PdfFunction, extendStart: Boolean, extendEnd: Boolean)

Properties

Link copied to clipboard
open override val background: RgbColor?

Optional /Background colour — used for regions outside the shading domain when Extend is false on the relevant side. Per spec the background is in colorSpace; we eager-convert to RGB.

Link copied to clipboard
open override val bbox: Rectangle?

Optional clipping rectangle (/BBox) in shading-space.

Link copied to clipboard
open override val colorSpace: ColorSpace

The shading's colour space (DeviceGray / DeviceRGB / DeviceCMYK / Indexed).

Link copied to clipboard

x0, y0, r0, x1, y1, r1 in shading-space.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Sample a PdfShading.Axial or PdfShading.Radial at evenly-spaced stops between domain[0] and domain[1]. Returns parallel t and RGB arrays the backend uses to build a gradient brush.