Skip to main content

encode_pixel

Function encode_pixel 

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

Encode a single elevation sample (metres) into (R, G, B) using the chosen format.