Skip to main content

line_runs

Function line_runs 

Source
pub fn line_runs(
    from: (i32, i32),
    to: (i32, i32),
    clip: PxRect,
    f: impl FnMut(i32, i32, i32),
)
Expand description

Calls f(y, x0, x1) for the runs of the line one pixel wide from from to to, both ends drawn, inside clip (the module’s rule). Each row of the line is one run.