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

Formats the value using the given formatter. Read more

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.

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.