chore(ppu): add alternate colour palette
This commit is contained in:
parent
c90b9ab024
commit
f92f4a17e0
15
src/ppu.rs
15
src/ppu.rs
|
@ -12,10 +12,17 @@ const PPU_START_ADDRESS: usize = 0x8000;
|
||||||
// OAM Scan
|
// OAM Scan
|
||||||
const OBJECT_LIMIT: usize = 10;
|
const OBJECT_LIMIT: usize = 10;
|
||||||
|
|
||||||
const WHITE: [u8; 4] = [0xFF, 0xFF, 0xFF, 0xFF];
|
// // White and Black
|
||||||
const LIGHT_GRAY: [u8; 4] = [0xCC, 0xCC, 0xCC, 0xFF];
|
// const WHITE: [u8; 4] = 0xFFFFFFFFu32.to_be_bytes();
|
||||||
const DARK_GRAY: [u8; 4] = [0x77, 0x77, 0x77, 0xFF];
|
// const LIGHT_GRAY: [u8; 4] = 0xB6B6B6FFu32.to_be_bytes();
|
||||||
const BLACK: [u8; 4] = [0x00, 0x00, 0x00, 0x00];
|
// const DARK_GRAY: [u8; 4] = 0x676767FFu32.to_be_bytes();
|
||||||
|
// const BLACK: [u8; 4] = 0x000000FFu32.to_be_bytes();
|
||||||
|
|
||||||
|
// Green
|
||||||
|
const WHITE: [u8; 4] = 0xE3EEC0FFu32.to_be_bytes();
|
||||||
|
const LIGHT_GRAY: [u8; 4] = 0xAEBA89FFu32.to_be_bytes();
|
||||||
|
const DARK_GRAY: [u8; 4] = 0x5E6745FFu32.to_be_bytes();
|
||||||
|
const BLACK: [u8; 4] = 0x202020FFu32.to_be_bytes();
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Ppu {
|
pub struct Ppu {
|
||||||
|
|
Loading…
Reference in New Issue