Skip to main content

tile_quads

Function tile_quads 

Source
pub fn tile_quads(source: Rect, destination: Rect) -> Vec<PatchQuad>
Expand description

The draws that tile source across destination at the source’s own size.

The last row and column are clipped, so a destination that is not a whole number of tiles ends mid-tile rather than being scaled to fit.