pub fn encode(
format: HeightmapFormat,
elevations: &[f32],
width: u32,
height: u32,
) -> Vec<u8> ⓘExpand description
Encode elevations into a freshly allocated RGB Vec.
§Panics
Panics if elevations.len() != (width * height) as usize.