fill_path_conic_gradient
Mojo function 🡭
fill_path_conic_gradient
fn def fill_path_conic_gradient(mut canvas: Canvas, path: Path, gradient: ConicGradient, fill_rule: FillRule = FillRule.EVEN_ODD, curve_steps: Int = Int(0))Like fill_path_gradient, but for a ConicGradient (gradient.mojo).
Args:
- canvas (
Canvas): Canvas to fill into. - path (
Path): Path to fill. - gradient (
ConicGradient): 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.