fill_path_pattern
Mojo function 🡭
fill_path_pattern
fn def fill_path_pattern(mut canvas: Canvas, path: Path, pattern: PatternSource, fill_rule: FillRule = FillRule.EVEN_ODD, curve_steps: Int = Int(0))Like fill_path_gradient, but for a PatternSource (pattern.mojo): each pixel’s color comes from a sampled raster tile rather than a gradient projection.
Args:
- canvas (
Canvas): Canvas to fill into. - path (
Path): Path to fill. - pattern (
PatternSource): Fill source, queried per pixel. - fill_rule (
FillRule): EVEN_ODD (default) or NONZERO – see FillRule. - curve_steps (
Int): Straight-line segments per quad/cubic Bezier; 0 (the default) chooses per segment.