From 7d8da021b80586b17c271b0a473eb00c16170432 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Tue, 11 May 2021 21:43:34 +0200 Subject: [PATCH] use canvas instead of txt --- src/lib.rs | 12 ++++++++++++ www | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fee254f..5e3db3e 100644 --- a/src/lib.rs +++ b/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 { diff --git a/www b/www index bef70f4..e36fb20 160000 --- a/www +++ b/www @@ -1 +1 @@ -Subproject commit bef70f448235c03bffd69694f5455a14b4b150aa +Subproject commit e36fb207617a80c2aeb528d973a57c25407d77b6