Skip to content

modern-pdf-lib


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?

readonly optional extend: boolean

Defined in: src/core/patterns.ts:96

Whether to extend the gradient beyond the start and end circles. Default: true.


r0

readonly r0: number

Defined in: src/core/patterns.ts:81

Radius of the start circle.


r1

readonly r1: number

Defined in: src/core/patterns.ts:87

Radius of the end circle.


stops

readonly stops: readonly (Color | ColorStop)[]

Defined in: src/core/patterns.ts:91

Colour stops (same semantics as LinearGradientOptions.stops).


x0

readonly x0: number

Defined in: src/core/patterns.ts:77

Centre X of the start circle.


x1

readonly x1: number

Defined in: src/core/patterns.ts:83

Centre X of the end circle.


y0

readonly y0: number

Defined in: src/core/patterns.ts:79

Centre Y of the start circle.


y1

readonly y1: number

Defined in: src/core/patterns.ts:85

Centre Y of the end circle.

Released under the MIT License.