Skip to main content

encode_pixel

Function encode_pixel 

Source
pub fn encode_pixel(elevation: f32) -> [u8; 3]
Expand description

Encode a single elevation sample (metres) into GSI (R, G, B).

NaN encodes as the no-data sentinel (128, 0, 0).