### Nintendo Confidential

## 14. ColorPalette Node

### (1) ColorPaletteList Description (English)

> u32 color_palette_list_tag | Specifies the tags that indicate the ColorPaletteList. Please set the tags shown below.
>     TAG_COLOR_PALETTE_LIST  0x00210000
> u32 color_palette_list_header_size | Specifies the byte size of the ColorPaletteListHeader.
> u32 color_palette_list_size | Specifies the byte size of the ColorPaletteList.
> u32 color_palette_num | Specifies the total number of ColorPalette.
> u32 color_palette_num_byte | Specifies the byte size of the ColorPalette.
> ColorPalette | This is the ColorPalette area.

> See Data Chunk

### (2) ColorPalette Description (English)

> u32 color_palette_tag | Specifies the tags that indicate the color palette. Please specify the tags shown below.
>     TAG_COLOR_PALETTE       0x00210100
> u32 this_color_palette_index | Specifies the index number of the ColorPalette.
> u32 color_palette_header_size Specifies the byte size of the ColorPaletteHeader.
> u32 color_palette_size | Specifies the byte size of the ColorPalette.
> u32 color_palette_name_index | Specifies the ColorPalette name by using the index number of the NameList.
> u32 color_num | Specifies the color number of ColorPalette. The following flags have been defined:
>     NIFF2_PALETTE_COLOR_16		0x00000010
>     NIFF2_PALETTE_COLOR_256		0x00000100
> u32 color_type | If a palette color is 16-bit, it is possible to specify either IA16 or RGBA16. IA refers to Intensity Alpha data, and it is used as 8-bit intensity and 8-bit alpha. RGBA is used as 5-bit red, 5-bit green, 5-bit blue, and 1-bit alpha. The following flags have been defined:
>     NIFF2_PALETTE_RGBA16		0x00000000
>     NIFF2_PALETTE_IA16		0x00000001
> u32 reserved | Please set it to 0x0 as the default.
> u32 color_array | The actual data in a palette. Actual color values are stored in order from palette number 0. Since each color value is a 16-bit value, they are stored in color_array using the big endian method in pairs. Since, in the case of color_num = NIFF2_PALETTE_COLOR_NUM_16, the total number of colors in the palette is 16, color_array has 8 sets of data from 0 to 7. In other words, color_array_num = 8.

> Since, in the case of color_num = NIFF2_PALETTE_COLOR_NUM_256, the total number of colors in the palette is 256, color_array has 128 sets of data from 0 to 127. In other words, color_array_num = 128.

> See Data Chunk

> Back to Index

Copyright 1998, 1999 NINTENDO Co., Ltd. All rights reserved.
Copyright 1998, 1999 MONEGI CORPORATION All rights reserved.