2023-05-19 19:15:01 +10:00
|
|
|
use crate::connect::Colour;
|
|
|
|
|
2023-02-24 09:39:37 +11:00
|
|
|
// Hz
|
|
|
|
pub const CLOCK_SPEED: usize = 4194304;
|
2023-05-19 19:15:01 +10:00
|
|
|
|
|
|
|
pub(crate) const ERROR_COLOUR: Colour = Colour(0xFF, 0x00, 0x00);
|
|
|
|
|
|
|
|
pub(crate) mod dmg_colours {
|
|
|
|
use crate::connect::Colour;
|
|
|
|
// validation b&w (dmg-acid2 etc.)
|
|
|
|
// pub(crate) const ZERO: Colour = Colour(0xFF, 0xFF, 0xFF);
|
|
|
|
// pub(crate) const ONE: Colour = Colour(0xAA, 0xAA, 0xAA);
|
|
|
|
// pub(crate) const TWO: Colour = Colour(0x55, 0x55, 0x55);
|
|
|
|
// pub(crate) const THREE: Colour = Colour(0x00, 0x00, 0x00);
|
|
|
|
|
|
|
|
// from https://www.designpieces.com/palette/game-boy-original-color-palette-hex-and-rgb/
|
|
|
|
pub(crate) const ZERO: Colour = Colour(0x9B, 0xBC, 0x0F);
|
|
|
|
pub(crate) const ONE: Colour = Colour(0x8B, 0xAC, 0x0F);
|
|
|
|
pub(crate) const TWO: Colour = Colour(0x30, 0x62, 0x30);
|
|
|
|
pub(crate) const THREE: Colour = Colour(0x0F, 0x38, 0x0F);
|
|
|
|
}
|