14 lines
212 B
Rust
14 lines
212 B
Rust
mod draw;
|
|
|
|
pub use draw::*;
|
|
|
|
pub trait Screen<Position, Color> {
|
|
fn show(&self);
|
|
|
|
fn clear(&mut self);
|
|
|
|
fn fill(&mut self, color: Color);
|
|
|
|
fn point(&mut self, position: Position, color: Color);
|
|
}
|