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)
