pdf/src/read/render/shade.rs#
Source: lib/pdf/src/read/render/shade.rs
Shadings and patterns (ISO 32000-1, 8.7): function-based, axial and radial shadings by pixel
(axial and radial through a table of 1024 colours over their domain, with Extend), the mesh
shadings (free-form and lattice triangles, Coons and tensor-product patches, the patches
cut into a grid of triangles fine enough for the device; each vertex, and each patch, begins
on a byte as Poppler and pdf.js read them) drawn with Gouraud colours and without
antialiasing between their triangles; sh fills the clip (and the shading's BBox),
a shading pattern fills a path, with its Background where the shading does not reach.
Tiling patterns draw one cell at device resolution into a tile (coloured, or uncoloured in
the colour of the scn) that repeats with the pattern's steps.
impl Shading
fn parse(doc: &Document, o: &Object, res: &Dict, oi: &super::color::Oi, intent: u8) -> Option<Shading>