Skip to main content

print_centred

Function print_centred 

Source
pub fn print_centred(
    buf: &mut GlyphBuffer,
    y: i32,
    text: &str,
    fg: Rgb,
    bg: Rgb,
)
Expand description

Prints text centred on row y. A text wider than buf starts at column 0, cut to the buffer’s width.