Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Yeah, each pixel in the frame buffer is an index into the palette, a pixel can only have values between 0 and 255. the palette can have 256 entries, and pixels are displayed using the rgb value at that index in the palette. if you change, for example, the palette entry 3, it will affect ALL pixels in the frame buffer that points to that index (all pixels that have value 3)

Thank you very much, Mattias.

Thanks to your explanation about colors, I was able to understand and implement some more effects (scanlines and green phosphor effect) in my pong game.

Nice, that looks great :)