summaryrefslogtreecommitdiff
path: root/src/global.rs
blob: cb616b16b3edb893c00a696623d98d6e61d4a9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub const IMG_WIDTH: usize = 256;
pub const IMG_HEIGHT: usize = 256;

#[derive(Debug, Copy, Clone)]
pub struct Pixel {
    pub r: u8,
    pub g: u8,
    pub b: u8,
}

impl Default for Pixel {
    fn default() -> Self {
        Pixel { r:0, g:0, b:0 }
    }
}

pub type DisplayBuffer = [[Pixel; IMG_WIDTH]; IMG_HEIGHT];