Function justified_rows
pub fn justified_rows(
aspects: &[f64],
width: f64,
target_height: f64,
gap: f64,
) -> Vec<Rect>Expand description
Lay aspects (width / height) out in justified rows width wide: each
row is filled at target_height, then scaled so it spans the width
exactly. The last row keeps the target height instead of stretching,
capped at the height of the row above it.
Returns one rect per item, relative to the origin.