Skip to main content

NINE_LEVELS

Constant NINE_LEVELS 

Source
pub const NINE_LEVELS: [char; 9];
Expand description

The nine bar levels from empty to full, indexed 0..=8: a blank cell, then ONE_EIGHTH through FULL in order.

Indexing this directly by round(fraction * 8.0) as usize turns a 0.0..=1.0 magnitude into the right glyph for one bar column.