Function color_map_fn

Source
pub fn color_map_fn(gray: f32) -> (u8, u8, u8)
Expand description

turbo color map function

§Arguments

  • gray - The gray value in the range [0, 255]

§Returns

  • The RGB color value in the range [0, 255]

§Example

use peng_quad::color_map_fn;
let color = color_map_fn(128.0);