use canvas instead of txt
This commit is contained in:
parent
3ac7f46f08
commit
7d8da021b8
2 changed files with 13 additions and 1 deletions
12
src/lib.rs
12
src/lib.rs
|
@ -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
2
www
|
@ -1 +1 @@
|
|||
Subproject commit bef70f448235c03bffd69694f5455a14b4b150aa
|
||||
Subproject commit e36fb207617a80c2aeb528d973a57c25407d77b6
|
Loading…
Reference in a new issue