blit_masked

Function blit_masked 

Source
pub fn blit_masked<T: Clone + PartialEq>(
    dest: impl SurfaceMut<T>,
    src: impl Surface<T>,
    transforms: &[Transform],
    mask: &T,
)
Expand description

Blit part of one surface to another, ignoring the mask values.

You can use sub_surface or offset_surface functions to limit the copied area. The transforms are done in order.