Function lut_from

Source
fn lut_from(f: impl Fn(f64) -> f64) -> [u8; 256]
Expand description

Build a 256-entry LUT from a 0..1 -> 0..1 function.