pub fn dim_buffer(buffer: &mut Buffer, factor: f32)Expand description
Dim a buffer by scaling colors towards black
factor ranges from 0.0 (no change) to 1.0 (fully dimmed/black)
Handles RGB, indexed, and named colors.
Emoji characters are replaced with spaces (they can’t be dimmed).