pub fn frame_rect(
atlas: &SpriteAtlas,
frame_index: u32,
) -> Result<(u32, u32, u32, u32)>Expand description
Returns (x, y, width, height) of frame frame_index in the atlas.
Frames are laid out row-major: cols = atlas.width / frame_width.