* Create a radial shading with explicit coordinates. * * @param options - Shading options including coords and color stops * @returns PDFShading resource for use with page.registerShading() * * @example * ```typescript * const radial = pdf.createRadialShading({ * coords: [5
(options: RadialShadingOptions)
| 2261 | * ``` |
| 2262 | */ |
| 2263 | createRadialShading(options: RadialShadingOptions): PDFShading { |
| 2264 | const dict = PDFShading.createRadialDict(options); |
| 2265 | const ref = this.register(dict); |
| 2266 | |
| 2267 | return new PDFShading(ref, "radial"); |
| 2268 | } |
| 2269 | |
| 2270 | /** |
| 2271 | * Create a linear gradient using angle and length (CSS-style). |
no test coverage detected