Skip to main content

for_each_pixel

Function for_each_pixel 

Source
fn for_each_pixel(
    lattice: &Lattice,
    rect: Rect,
    scale: usize,
    pixel: impl FnMut(bool, f32),
)
Expand description

Walks the output pixels in row-major order, handing each one the site it lands in and how much of it the disc covers (always 1.0 away from a round cut’s edge).