Skip to main content

fill_pixels

Function fill_pixels 

Source
pub unsafe fn fill_pixels(
    dst: *mut u8,
    bpp_bytes: usize,
    color: u32,
    pixels: usize,
)
Expand description

Fill pixels consecutive pixels with color.

ยงSafety

dst must point to pixels * bytes_per_pixel(bpp) writable bytes inside a mapped framebuffer row.