modern-pdf-lib / linearGradient
Function: linearGradient()
linearGradient(
options):GradientFill
Defined in: src/core/patterns.ts:248
Create a linear (axial) gradient descriptor.
The gradient runs from (x1, y1) to (x2, y2) through the given colour stops. By default the gradient extends beyond its endpoints.
Parameters
options
Gradient parameters.
Returns
A GradientFill descriptor.