tv_SetPalette color red green blue
Sets a color in the working palette. The color argument contains the color number, with a value between 0 and 255. In the working palette, colors are numbered from left to right and from top to bottom, with color 0 being located in the top left corner. The red, green and blue arguments are the values of the components of the required color. These arguments are all between 0 and 255. This command returns the values of the red, green and blue components of the previous color.