pub enum Paint {
Image,
Solid(Rgb),
Dimmed,
Shaded(Light),
}Expand description
How a Sprite’s pixels are coloured (game ADR-0049). Whichever it is, a
pixel is as see-through as the image has it.
Variants§
Image
The image’s own colours.
Solid(Rgb)
Every pixel in this one colour: the picture’s silhouette (a unit’s outline, a hit flash).
Dimmed
Each pixel dimmed: grey and darker (a unit that has acted).
Shaded(Light)
Each pixel as it is in this light (game ADR-0058): the ground of a map at dusk.
Implementations§
Trait Implementations§
impl Copy for Paint
impl Eq for Paint
impl StructuralPartialEq for Paint
Auto Trait Implementations§
impl Freeze for Paint
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnsafeUnpin for Paint
impl UnwindSafe for Paint
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