pub struct Colors {
pub fill_color: Option<Color>,
pub fill_color2: Option<Color>,
pub blend_color: Option<Color>,
pub background_color: Option<Color>,
pub buzz_color: Option<Color>,
pub quiet_color: Option<Color>,
}
Expand description
If the CHIP-8 interpreter supports custom colors for visual elements, it can use these values for setting them.
Fields
fill_color: Option<Color>
The standard color used for active pixels on the CHIP-8 screen. For XO-CHIP, it’s used for the first drawing plane.
fill_color2: Option<Color>
XO-CHIP only: The color used for the second drawing plane.
blend_color: Option<Color>
XO-CHIP only: The color used for when both drawing planes overlap.
background_color: Option<Color>
The standard background color of the CHIP-8 screen.
buzz_color: Option<Color>
The color used by any visual indicator for when the sound buzzer is active.
quiet_color: Option<Color>
The color used by any visual indicator for when the sound buzzer is inactive.
Trait Implementations
sourceimpl Default for Colors
impl Default for Colors
The default colorscheme here is white on black, which is most common, with non-standard colors for the other elements, albeit inspried by Octo’s “Hot Dog” preset.
sourceimpl<'de> Deserialize<'de> for Colors
impl<'de> Deserialize<'de> for Colors
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Colors
Auto Trait Implementations
impl RefUnwindSafe for Colors
impl Send for Colors
impl Sync for Colors
impl Unpin for Colors
impl UnwindSafe for Colors
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more