Nintendo 1504166 Programming Manual - Page 73

Color Palettes, 7.1 Color Palette Overview, Note], 16 Colors x 16 Palettes, Color 0 Transparency

Page 73 highlights

AGB Programming Manual Color Palettes 7 Color Palettes 7.1 Color Palette Overview The LCD unit of AGB can display 32 levels of red, 32 levels of green, and 32 levels of blue, for a total of 32,768 colors. The number of colors that can be displayed at once varies with the BG mode. See "5.1.1 Details of BG Modes". Color palettes are used in defining character-format BGs and OBJs. [Note] Bitmap-format BG modes 3 and 5 are not palette formats. See "6.2 Bitmap Mode BGs (BG Modes 3-5)". Color palettes come in the following two forms. 1) 16 Colors x 16 Palettes This mode provides 16 color palettes, each consisting of 16 colors. Color 0 for OBJ and BG palettes is forcibly allocated to transparent (color specification disabled). 2) 256 Colors x 1 Palette This mode allocates all 256 of its colors to 1 palette. Color data are represented by 15 bits (5 for Red, 5 for Green, and 5 for Blue). Colors can be selected from the total of 32,768. OBJ color 0 and BG color 0 are forcibly allocated to transparent (color specification disabled). 3) Color 0 Transparency Color 0 transparency is used to render the pixels of low-priority OBJs or BGs as transparent. The color specified for color 0 of BG palette 0 is applied to the backdrop, which has the lowest priority. ©1999 - 2001 Nintendo of America Inc. 73 D.C.N. AGB-06-0001-002B4

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171

AGB Programming Manual
Color Palettes
©1999 - 2001 Nintendo of America Inc.
73
D.C.N. AGB-06-0001-002B4
7 Color Palettes
7.1
Color Palette Overview
The LCD unit of AGB can display 32 levels of red, 32 levels of green, and 32 levels of
blue, for a total of 32,768 colors.
The number of colors that can be displayed at once varies with the BG mode.
See
“5.1.1 Details of BG Modes”.
Color palettes are used in defining character-format BGs
and OBJs.
[Note]
Bitmap-format BG modes 3 and 5 are not palette formats.
See “6.2 Bitmap Mode BGs (BG Modes 3-5)”.
Color palettes come in the following two forms.
1) 16 Colors x 16 Palettes
This mode provides 16 color palettes, each consisting of 16 colors.
Color 0 for OBJ and BG palettes is forcibly allocated to transparent (color
specification disabled).
2) 256 Colors x 1 Palette
This mode allocates all 256 of its colors to 1 palette.
Color data are represented by 15 bits (5 for Red, 5 for Green, and 5 for
Blue).
Colors can be selected from the total of 32,768.
OBJ color 0 and BG color 0 are forcibly allocated to transparent (color
specification disabled).
3) Color 0 Transparency
Color 0 transparency is used to render the pixels of low-priority OBJs or
BGs as transparent.
The color specified for color 0 of BG palette 0 is applied to the backdrop,
which has the lowest priority.