// draw a rectangle on the screen with the parameters inputted
draw a rectangle on the screen with the parameters inputted
draw a rectangle on the screen with the parameters inputted
pub fn draw(color: Color, x: u32, y: u32, width: u32, height: u32, c: &Context, g: &mut G2d) {
    rectangle(
        color,
        [
            to_block_size(x),
            to_block_size(y),
            to_block_size(width),
            to_block_size(height),
        ],
        c.transform,
        g,
    );
}
pub fn draw ( color : Color , x : u32 , y : u32 , width : u32 , height : u32 , c : & Context , g : & mut G2d ) { rectangle ( color , [ to_block_size ( x ) , to_block_size ( y ) , to_block_size ( width ) , to_block_size ( height ) , ] , c . transform , g , ) ; }
draw a rectangle on the screen with the parameters inputted
draw a rectangle on the screen with the parameters inputted
color
Color
x
u32
y
u32
width
u32
height
u32
c
&Context
g
&mut G2d