Skip to main content

Module shading

Module shading 

Source
Expand description

Shaded fills — gradient patterns and Gouraud-shaded triangles.

Replaces Splash::shadedFill and Splash::gouraudTriangleShadedFill.

§Module layout (named for orientation; visibility varies)

§Entry point

shaded_fill is a thin wrapper around fill::fill / fill::eo_fill that passes the pattern as a PipeSrc::Pattern. The gradient patterns implement Pattern and are injected by the caller (typically pdf_bridge).

Modules§

axial
Axial (linear) gradient pattern (PDF §8.7.4.5, type 2).
function
Function-based shading pattern.
gouraud
Gouraud-shaded triangle fill — Splash::gouraudTriangleShadedFill.
radial
Radial gradient pattern (PDF §8.7.4.5, type 3).

Functions§

shaded_fill
Fill path using a shading pattern as the colour source.