diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-02-05 18:37:35 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-02-05 18:37:35 +0900 |
commit | 6b8027c3aa644ee32f2a535840a5de024eaa0647 (patch) | |
tree | b41aa1249edf5108de33c44fcfc144c7f209688c | |
parent | 2d187a02033d7980202b44d9f6b4b0a4d185a60b (diff) |
changed LCD color
-rw-r--r-- | fmdsp/fmdsp_sprites.h | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/fmdsp/fmdsp_sprites.h b/fmdsp/fmdsp_sprites.h index ded3591..9033f6d 100644 --- a/fmdsp/fmdsp_sprites.h +++ b/fmdsp/fmdsp_sprites.h @@ -41,17 +41,22 @@ enum { PALETTE_NUM = 10 }; -#define LCDWR 181 -#define LCDWG 192 -#define LCDWB 12 -#define LCDBR 70 -#define LCDBG 124 -#define LCDBB 108 +#define LCDWR 172 +#define LCDWG 239 +#define LCDWB 7 +#define LCDBR 12 +#define LCDBG 91 +#define LCDBB 0 #define LCD(C) \ (LCDWR*(C)+LCDBR*(255-C))/256, \ (LCDWG*(C)+LCDBG*(255-C))/256, \ (LCDWB*(C)+LCDBB*(255-C))/256 +#define LCDB(C) \ + (LCDBR*(C)+LCDWR*(255-C))/256, \ + (LCDBG*(C)+LCDWG*(255-C))/256, \ + (LCDBB*(C)+LCDWB*(255-C))/256 + static const uint8_t s_palettes[PALETTE_NUM][FMDSP_PALETTE_COLORS*3] = { { 0, 0, 0, @@ -142,15 +147,15 @@ static const uint8_t s_palettes[PALETTE_NUM][FMDSP_PALETTE_COLORS*3] = { 0, 170, 255, }, { - LCD(255), - LCD(72), - LCD(0), - LCD(182), - LCD(0), - LCD(145), - LCD(218), - LCD(109), - LCD(218), + LCDB(255), + LCDB(72), + LCDB(0), + LCDB(182), + LCDB(0), + LCDB(145), + LCDB(218), + LCDB(109), + LCDB(218), }, { LCD(255), |