modern-pdf-lib / RadialGradientOptions
Interface: RadialGradientOptions
Defined in: src/core/patterns.ts:75
Options for creating a radial gradient (radial shading, ShadingType 3).
Properties
extend?
readonlyoptionalextend:boolean
Defined in: src/core/patterns.ts:96
Whether to extend the gradient beyond the start and end circles. Default: true.
r0
readonlyr0:number
Defined in: src/core/patterns.ts:81
Radius of the start circle.
r1
readonlyr1:number
Defined in: src/core/patterns.ts:87
Radius of the end circle.
stops
Defined in: src/core/patterns.ts:91
Colour stops (same semantics as LinearGradientOptions.stops).
x0
readonlyx0:number
Defined in: src/core/patterns.ts:77
Centre X of the start circle.
x1
readonlyx1:number
Defined in: src/core/patterns.ts:83
Centre X of the end circle.
y0
readonlyy0:number
Defined in: src/core/patterns.ts:79
Centre Y of the start circle.
y1
readonlyy1:number
Defined in: src/core/patterns.ts:85
Centre Y of the end circle.