#[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.
| Code | Red | Green | Blue | Name | HTML color |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | Black | #000000 |
| 1 | 15 | 15 | 15 | White | #FFFFFF |
| 2 | 15 | 0 | 0 | Red | #FF0000 |
| 3 | 0 | 15 | 15 | Cyan | #00FFFF |
| 4 | 15 | 0 | 15 | Purple | #FF00FF |
| 5 | 0 | 15 | 0 | Green | #00FF00 |
| 6 | 0 | 0 | 15 | Blue | #0000FF |
| 7 | 15 | 15 | 0 | Yellow | #FFFF00 |
| 8 | 15 | 6 | 0 | Orange | #FF6F00 |
| 9 | 10 | 4 | 0 | Brown | #A04000 |
| 10 | 15 | 7 | 7 | Light Red (Pink) | #FF7777 |
| 11 | 5 | 5 | 5 | Dark Grey | #050505 |
| 12 | 8 | 8 | 8 | Medium Grey | #080808 |
| 13 | 9 | 15 | 9 | Light Green | #09FF09 |
| 14 | 9 | 9 | 15 | Light Blue | #0909FF |
| 15 | 11 | 11 | 11 | Light Grey | #0B0B0B |
| 16 | 14 | 0 | 0 | Guru Meditation | #E00000 |
| 17 | 15 | 5 | 0 | Rambutan | #FF5000 |
| 18 | 15 | 11 | 0 | Carrot | #FF6F00 |
| 19 | 14 | 14 | 0 | Lemon Tart | #8E8E00 |
| 20 | 7 | 15 | 0 | Pandan | #07FF00 |
| 21 | 6 | 14 | 6 | Seasick Green | #06E606 |
| 22 | 0 | 14 | 3 | Soylent Green | #00E003 |
| 23 | 0 | 15 | 9 | Slimer Green | #00FF09 |
| 24 | 0 | 13 | 13 | The Other Cyan | #00DDDD |
| 25 | 0 | 9 | 15 | Sea Sky | #009FFF |
| 26 | 0 | 3 | 15 | Smurf Blue | #003FFF |
| 27 | 0 | 0 | 14 | Screen of Death | #0000E0 |
| 28 | 7 | 0 | 15 | Plum Sauce | #0700FF |
| 29 | 12 | 0 | 15 | Sour Grape | #0C00FF |
| 30 | 15 | 0 | 11 | Bubblegum | #FF0B0B |
| 31 | 15 | 3 | 6 | Hot 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
impl Clone for DefaultPalette
Source§fn clone(&self) -> DefaultPalette
fn clone(&self) -> DefaultPalette
Returns a duplicate 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 DefaultPalette
impl Debug for DefaultPalette
Source§impl PartialEq for DefaultPalette
impl PartialEq for DefaultPalette
impl Copy for DefaultPalette
impl StructuralPartialEq for DefaultPalette
Auto Trait Implementations§
impl Freeze for DefaultPalette
impl RefUnwindSafe for DefaultPalette
impl Send for DefaultPalette
impl Sync for DefaultPalette
impl Unpin for DefaultPalette
impl UnwindSafe for DefaultPalette
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