pub fn encode(elevations: &[f32], width: u32, height: u32) -> Vec<u8> ⓘ
Encode elevations (metres) into a flat width × height × 3 RGB buffer.
elevations
width × height × 3
Panics if elevations.len() != (width * height) as usize.
elevations.len() != (width * height) as usize