Axial
Type 2 axial shading. Linear gradient between (x0, y0) and (x1, y1) with t running across domain. function supplies a colour per t value; we sample it at a fixed number of stops and hand those to the backend.
Constructors
Properties
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.
The shading's colour space (DeviceGray / DeviceRGB / DeviceCMYK / Indexed).
x0, y0, x1, y1 in shading-space.
t0, t1 — domain of function.
Extend the gradient beyond t0 / t1 with the endpoint colours.
Functions
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.