use canvas instead of txt

This commit is contained in:
histausse 2021-05-11 21:43:34 +02:00
parent 3ac7f46f08
commit 7d8da021b8
Signed by: histausse
GPG key ID: 67486F107F62E9E9
2 changed files with 13 additions and 1 deletions

View file

@ -104,6 +104,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 fmt::Display for Universe {

2
www

@ -1 +1 @@
Subproject commit bef70f448235c03bffd69694f5455a14b4b150aa
Subproject commit e36fb207617a80c2aeb528d973a57c25407d77b6