DefaultPalette

Enum DefaultPalette 

Source
#[repr(u8)]
pub enum DefaultPalette {
Show 32 variants Black = 0, White = 1, Red = 2, Cyan = 3, Purple = 4, Green = 5, Blue = 6, Yellow = 7, Orange = 8, Brown = 9, LightRed = 10, DarkGrey = 11, MediumGrey = 12, LightGreen = 13, LightBlue = 14, LightGrey = 15, GuruMeditation = 16, Rambutan = 17, Carrot = 18, LemonTart = 19, Pandan = 20, SeasickGreen = 21, SoylentGreen = 22, SlimerGreen = 23, TheOtherCyan = 24, SeaSky = 25, SmurfBlue = 26, ScreenOfDeath = 27, PlumSauce = 28, SourGrape = 29, Bubblegum = 30, HotTamales = 31,
}
Expand description

Default system palette

The following table is extracted from the MEGA65 user guide.

CodeRedGreenBlueNameHTML color
0000Black#000000
1151515White#FFFFFF
21500Red#FF0000
301515Cyan#00FFFF
415015Purple#FF00FF
50150Green#00FF00
60015Blue#0000FF
715150Yellow#FFFF00
81560Orange#FF6F00
91040Brown#A04000
101577Light Red (Pink)#FF7777
11555Dark Grey#050505
12888Medium Grey#080808
139159Light Green#09FF09
149915Light Blue#0909FF
15111111Light Grey#0B0B0B
161400Guru Meditation#E00000
171550Rambutan#FF5000
1815110Carrot#FF6F00
1914140Lemon Tart#8E8E00
207150Pandan#07FF00
216146Seasick Green#06E606
220143Soylent Green#00E003
230159Slimer Green#00FF09
2401313The Other Cyan#00DDDD
250915Sea Sky#009FFF
260315Smurf Blue#003FFF
270014Screen of Death#0000E0
287015Plum Sauce#0700FF
2912015Sour Grape#0C00FF
3015011Bubblegum#FF0B0B
311536Hot Tamales#FF0306

Variants§

§

Black = 0

Black color ()

§

White = 1

White color ()

§

Red = 2

Red color ()

§

Cyan = 3

Cyan color ()

§

Purple = 4

Purple color ()

§

Green = 5

Green color ()

§

Blue = 6

Blue color ()

§

Yellow = 7

Yellow color ()

§

Orange = 8

Orange color ()

§

Brown = 9

Brown color ()

§

LightRed = 10

Light Red (Pink) color ()

§

DarkGrey = 11

Dark Grey color ()

§

MediumGrey = 12

Medium Grey color ()

§

LightGreen = 13

Light Green color ()

§

LightBlue = 14

Light Blue color ()

§

LightGrey = 15

Light Grey color ()

§

GuruMeditation = 16

Guru Meditation color ()

§

Rambutan = 17

Rambutan color ()

§

Carrot = 18

Carrot color ()

§

LemonTart = 19

Lemon Tart color ()

§

Pandan = 20

Pandan color ()

§

SeasickGreen = 21

Seasick Green color ()

§

SoylentGreen = 22

Soylent Green color ()

§

SlimerGreen = 23

Slimer Green color ()

§

TheOtherCyan = 24

The Other Cyan color ()

§

SeaSky = 25

Sea Sky color ()

§

SmurfBlue = 26

Smurf Blue color ()

§

ScreenOfDeath = 27

Screen of Death color ()

§

PlumSauce = 28

Plum Sauce color ()

§

SourGrape = 29

Sour Grape color ()

§

Bubblegum = 30

Bubblegum color ()

§

HotTamales = 31

Hot Tamales color ()

Trait Implementations§

Source§

impl Clone for DefaultPalette

Source§

fn clone(&self) -> DefaultPalette

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DefaultPalette

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for DefaultPalette

Source§

fn eq(&self, other: &DefaultPalette) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for DefaultPalette

Source§

impl StructuralPartialEq for DefaultPalette

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.