use crate::BRIGHTNESS; use crate::HEIGHT; use crate::Q; use crate::WIDTH; pub struct Cell { pub x: u32, pub y: u32, pub state: u32, } pub fn init_grid() -> Vec> { let mut grid: Vec> = Vec::new(); for j in 0..HEIGHT { let mut row: Vec = Vec::new(); for i in 0..WIDTH { row.push(Cell { x: i, y: j, state: 0, }); } grid.push(row); } grid }