embedded-graphics 0.2.0

Embedded graphics library for small hardware displays
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! `Drawable` trait and helpers

use super::unsignedcoord::UnsignedCoord;

// TODO: Refactor to use both with monochrome and multicolour displays
/// Monochrome colour type
pub type Color = u8;

/// A single pixel
pub type Pixel = (UnsignedCoord, Color);

/// Marks an object as "drawable". Must be implemented for all graphics objects
pub trait Drawable {}