Search code examples
palette

How to generate NES palette in C# code


How can I generate the NES palette entirely in C# code, without using any constant values?

I want to precalculate the palette in the same way that the PPU does.

Thanks!


Solution

  • You can simulate the chip based on the YPbPr signals the NES sents, but just make it easy for yourself and pre-program the colors using the hex values from wikipedia or some other source.