pub enum Ink {
White,
Black,
BlackEdged,
Grey,
Dots,
Diagonals,
Dashes,
Invert,
}Expand description
How a one-bit pixel is coloured (game ADR-0074). The patterns are fixed to the screen’s pixels, so neighbouring tiles line up.
Variants§
White
White: the ground.
Black
Black.
BlackEdged
Black, and on a glyph a white edge one pixel wide around it, so it reads over a pattern. Anything else in it is plain black.
Grey
A 50% checker (enemies’ tiles).
Dots
Light dots, one pixel in eight (the move range).
Diagonals
Diagonal lines, one pixel in four (the attack range).
Dashes
Dashes two pixels long (the danger zone’s edge): a 1-pixel line of it is a dashed line.
Invert
Flips the pixels under it (the cursor’s corner marks). Only a rectangle item flips; anything else in it is plain black.
Implementations§
Trait Implementations§
impl Copy for Ink
impl Eq for Ink
impl StructuralPartialEq for Ink
Auto Trait Implementations§
impl Freeze for Ink
impl RefUnwindSafe for Ink
impl Send for Ink
impl Sync for Ink
impl Unpin for Ink
impl UnsafeUnpin for Ink
impl UnwindSafe for Ink
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