Enum retro_display::c64::VicIIPalette
source · #[repr(u8)]pub enum VicIIPalette {
Show 16 variants
Black = 0,
White = 1,
Red = 2,
Cyan = 3,
Purple = 4,
Green = 5,
Blue = 6,
Yellow = 7,
Orange = 8,
Brown = 9,
LightRed = 10,
DarkGray = 11,
Gray = 12,
LightGreen = 13,
LightBlue = 14,
LightGray = 15,
}
Expand description
Color palette of the VIC-II chip found in e.g. the Commodore 64 and 128
Variants§
Black = 0
White = 1
Red = 2
Cyan = 3
Purple = 4
Green = 5
Blue = 6
Yellow = 7
Orange = 8
Brown = 9
LightRed = 10
DarkGray = 11
Also known as gray 1
Gray = 12
Also known as gray 2
LightGreen = 13
LightBlue = 14
LightGray = 15
Also known as Gray 3
Trait Implementations§
source§impl Clone for VicIIPalette
impl Clone for VicIIPalette
source§fn clone(&self) -> VicIIPalette
fn clone(&self) -> VicIIPalette
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VicIIPalette
impl Debug for VicIIPalette
source§impl From<Gray8> for VicIIPalette
impl From<Gray8> for VicIIPalette
source§impl From<Rgb555> for VicIIPalette
impl From<Rgb555> for VicIIPalette
Todo: currently this simply transforms to grey scale
source§impl From<Rgb888> for VicIIPalette
impl From<Rgb888> for VicIIPalette
Todo: currently this simply transforms to grey scale
source§impl From<VicIIPalette> for Rgb888
impl From<VicIIPalette> for Rgb888
source§fn from(color: VicIIPalette) -> Self
fn from(color: VicIIPalette) -> Self
Converts to this type from the input type.
source§impl Hash for VicIIPalette
impl Hash for VicIIPalette
source§impl Ord for VicIIPalette
impl Ord for VicIIPalette
source§fn cmp(&self, other: &VicIIPalette) -> Ordering
fn cmp(&self, other: &VicIIPalette) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for VicIIPalette
impl PartialEq for VicIIPalette
source§fn eq(&self, other: &VicIIPalette) -> bool
fn eq(&self, other: &VicIIPalette) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VicIIPalette
impl PartialOrd for VicIIPalette
source§fn partial_cmp(&self, other: &VicIIPalette) -> Option<Ordering>
fn partial_cmp(&self, other: &VicIIPalette) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PixelColor for VicIIPalette
impl PixelColor for VicIIPalette
impl Copy for VicIIPalette
impl Eq for VicIIPalette
impl StructuralPartialEq for VicIIPalette
Auto Trait Implementations§
impl RefUnwindSafe for VicIIPalette
impl Send for VicIIPalette
impl Sync for VicIIPalette
impl Unpin for VicIIPalette
impl UnwindSafe for VicIIPalette
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.