pub fn dim_buffer(buffer: &mut Buffer, factor: f32)
Dim a buffer by blending with a darker shade
factor ranges from 0.0 (no change) to 1.0 (fully dimmed)
factor