Skip to main content

Module paints

Module paints 

Source
Expand description

Paint definitions consumed by DrawCtx.

Solid color fills are expressed directly via Color; this module hosts the richer paint kinds that need their own data: LinearGradientPaint, RadialGradientPaint, and PatternPaint, plus the supporting GradientStop / GradientSpread / FillRule types and the CPU-side sample implementations the software backend uses.

draw_ctx re-exports every public name here, so existing call sites that reach for agg_gui::draw_ctx::RadialGradientPaint (etc.) continue to resolve unchanged.

Structs§

GradientStop
One color stop in a bridge-level gradient paint.
LinearGradientPaint
Linear gradient fill paint expressed in local drawing coordinates.
PatternPaint
Repeating raster pattern paint expressed in SVG/user drawing coordinates.
RadialGradientPaint
Radial/focal gradient fill paint expressed in local drawing coordinates.

Enums§

FillRule
Fill rule used when rasterizing closed paths.
GradientSpread
How a gradient behaves outside the normalized 0..=1 range.