Palette with multiple values partly working.
Got the palette working.
changed to a byte array for palette.