Use canvas and memory

This commit is contained in:
2025-02-24 09:52:01 +01:00
parent eb277a0118
commit 388e6d900f
5 changed files with 176 additions and 149 deletions

View File

@@ -111,6 +111,18 @@ impl Universe {
pub fn render(&self) -> String {
self.to_string()
}
pub fn width(&self) -> u32 {
self.width
}
pub fn height(&self) -> u32 {
self.height
}
pub fn cells(&self) -> *const Cell {
self.cells.as_ptr()
}
}
impl Default for Universe {