fn create_fill_box(x: u16, y: u16, width: u16, height: u16, bg: Color) {

    let mut stdout = stdout();

    // Simply write the color to each row
    for h in 0..height {
        execute!(
            stdout,
            cursor::MoveTo(x, y + h),
            SetBackgroundColor(bg),
            Print(chars::EMPTY.repeat(width as usize))
        ).unwrap();
    }
}
/// A function that creates a filled, borderless box
A function that creates a filled, borderless box
A function that creates a filled borderless box
fn create_fill_box(x: u16, y: u16, width: u16, height: u16, bg: Color) {
    let mut stdout = stdout();
    // Simply write the color to each row
    for h in 0..height {
        execute!(
            stdout,
            cursor::MoveTo(x, y + h),
            SetBackgroundColor(bg),
            Print(chars::EMPTY.repeat(width as usize))
        ).unwrap();
    }
}
fn create_fill_box ( x : u16 , y : u16 , width : u16 , height : u16 , bg : Color ) { let mut stdout = stdout ( ) ; // Simply write the color to each row for h in 0 .. height { execute ! ( stdout cursor MoveTo ( x y h ) SetBackgroundColor ( bg ) Print ( chars EMPTY repeat ( width as usize ) ) ) . unwrap ( ) ; } }
A function that creates a filled, borderless box
A function that creates a filled borderless box
x
u16
y
u16
width
u16
height
u16
bg
Color
x
u16
y
u16
width
u16
height
u16
bg
Color