1
2
3
4
5
6
7
8
9
use super::{Color, Point, Rect};

pub trait Renderer {
    fn clear(&mut self, color: Color);
    fn char(&mut self, pos: Point, c: char, color: Color);
    fn rect(&mut self, rect: Rect, color: Color);
    fn pixel(&mut self, point: Point, color: Color);
    fn line(&mut self, start: Point, end: Point, color: Color);
}