pub fn draw_block(color: Color, x_pos: i32, y_pos: i32, con: Context, g: &mut G2d) {
    rectangle(
        color,
        [
            make_coords_f64(x_pos),
            make_coords_f64(y_pos),
            BLOCK_SIZE,
            BLOCK_SIZE,
        ],
        con.transform,
        g,
    );
}
/// draw one block at x, y using provide color (for snake and apple)
draw one block at x, y using provide color (for snake and apple)
draw one block at x y using provide color ( for snake and apple )
pub fn draw_block(color: Color, x_pos: i32, y_pos: i32, con: Context, g: &mut G2d) {
    rectangle(
        color,
        [
            make_coords_f64(x_pos),
            make_coords_f64(y_pos),
            BLOCK_SIZE,
            BLOCK_SIZE,
        ],
        con.transform,
        g,
    );
}
pub fn draw_block ( color : Color , x_pos : i32 , y_pos : i32 , con : Context , g : & mut G2d ) { rectangle ( color , [ make_coords_f64 ( x_pos ) , make_coords_f64 ( y_pos ) , BLOCK_SIZE , BLOCK_SIZE , ] , con . transform , g , ) ; }
draw one block at x, y using provide color (for snake and apple)
draw one block at x y using provide color ( for snake and apple )
color
Color
x_pos
i32
y_pos
i32
con
Context
g
&mut G2d
color
Color
x_pos
i32
y_pos
i32
con
Context
g
&mut G2d