pub struct Shade {
pub rows: Rows,
pub edged: bool,
pub flips: bool,
}Expand description
How a colour is drawn: an 8 × 8 pattern fixed to the screen, and what two of the game’s inks do besides.
Fields§
§rows: RowsThe pattern: screen pixel (x, y) takes bit x % 8 (from the
highest) of row y % 8, a set bit white. Every pattern repeats
within 8 pixels across, so a row’s byte is the same all along it.
edged: boolA glyph in it gets a white edge one pixel wide around it
(Ink::BlackEdged).
flips: boolA rectangle in it flips the pixels under it, after everything else
(Ink::Invert); anything else in it is drawn in the pattern.
Implementations§
Trait Implementations§
impl Copy for Shade
impl Eq for Shade
impl StructuralPartialEq for Shade
Auto Trait Implementations§
impl Freeze for Shade
impl RefUnwindSafe for Shade
impl Send for Shade
impl Sync for Shade
impl Unpin for Shade
impl UnsafeUnpin for Shade
impl UnwindSafe for Shade
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more