Skip to main content

generate_base_palette

Function generate_base_palette 

Source
pub fn generate_base_palette(params: &NtscPaletteParams) -> [[u8; 3]; 64]
Expand description

Synthesize the 64-entry RGB888 base palette from params.

The output is a drop-in replacement for crate::NES_PALETTE (emphasis is not baked in here — the PPU’s existing build_rgba_lut_from_base applies it). Deterministic and no_std; see the module docs for the model.