[][src]Function asciify::compute_brightness

pub fn compute_brightness(pixel: &Rgba<u8>) -> f32

Computes the brightness of the pixel as a number between 0 and 1