use macroquad::prelude::*;
use macroquad_grid::Grid;
use macroquad_grid::Position;
#[macroquad::main("BasicShapes")]
async fn main() {
let mut g = Grid::new(300.0, 300.0, 10, 10, 1.0);
g.select_cell(Some((4, 5)));
g.set_selected_cell_color(RED);
g.set_cell_bg_color(BROWN);
g.set_gap_color(YELLOW);
g.set_x_offset(Position::Center);
g.set_y_offset(Position::Center);
g.color_cell(7, 7, ORANGE);
g.set_cell_text(0, 0, Some("hi"));
g.set_selected_cell_text(Some("sel"));
let i = g.get_selected_cell_index().expect("selected it ~10 lines ago, I know its the some variant");
println!("{:#?} is the selected cell", i);
loop {
g.draw();
next_frame().await
}
}