pub fn draw_rectangle(
    color: Color,
    x_pos: i32,
    y_pos: i32,
    width: i32,
    height: i32,
    con: Context,
    g: &mut G2d,
) {
    rectangle(
        color,
        [
            make_coords_f64(x_pos),
            make_coords_f64(y_pos),
            BLOCK_SIZE * (width as f64),
            BLOCK_SIZE * (height as f64),
        ],
        con.transform,
        g,
    );
}
/// draw rectangle at x, y with a height and width using provide color (for borders)
draw rectangle at x, y with a height and width using provide color (for borders)
draw rectangle at x y with a height and width using provide color ( for borders )
pub fn draw_rectangle(
    color: Color,
    x_pos: i32,
    y_pos: i32,
    width: i32,
    height: i32,
    con: Context,
    g: &mut G2d,
) {
    rectangle(
        color,
        [
            make_coords_f64(x_pos),
            make_coords_f64(y_pos),
            BLOCK_SIZE * (width as f64),
            BLOCK_SIZE * (height as f64),
        ],
        con.transform,
        g,
    );
}
pub fn draw_rectangle ( color : Color , x_pos : i32 , y_pos : i32 , width : i32 , height : i32 , con : Context , g : & mut G2d , ) { rectangle ( color , [ make_coords_f64 ( x_pos ) , make_coords_f64 ( y_pos ) , BLOCK_SIZE * ( width as f64 ) , BLOCK_SIZE * ( height as f64 ) , ] , con . transform , g , ) ; }
draw rectangle at x, y with a height and width using provide color (for borders)
draw rectangle at x y with a height and width using provide color ( for borders )
color
Color
x_pos
i32
y_pos
i32
width
i32
height
i32
con
Context
g
&mut G2d
color
Color
x_pos
i32
y_pos
i32
width
i32
height
i32
con
Context
g
&mut G2d