Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: PokittoLib
Fork of AnimationTest by
night_palette.cpp
- Committer:
- Pokitto
- Date:
- 2018-05-02
- Revision:
- 8:809b1982b4ae
- Parent:
- 4:1b2348ec80ad
File content as of revision 8:809b1982b4ae:
/*
* BMP image as 4bpp (16 colour index) data
*/
#include <stdint.h>
#include "Pixonia.h"
// map colors correctly
// 3 - 2
// 8 - 5
// 11- 4
// 6 - 1
// 0 - 3
// 5 - 10
// 9 = 9
const uint16_t pokulous_pal[] = {
22530,
12922,
10764,
9284,
13670, //4
20137,
0, // GOLD !!
41728,
33280, //8
65535,
46486,
38066,
29614, //12
0,
63488,
63519
};
const uint16_t night_palette_orig[] = {
18697,33104,18506,22830,27280,56830,2249,8517,552,2145,6371,2859,257,545,18952,0
};
const uint16_t night_palette[] = {
18697, //0
2249, //33104, //1
22830, //18506, //2
18697, //22830, //3
2859, //27280, //4
552, //56830, //5
65312, // GOLD!! 2249, //6
8517, //7
552, //8
65535, //2145, //9
27280, //56830, //6371, //10 //too bright !
2859, //11
257, //12
545, //13
63488, //14 Werewolf eyes
0 //15
};
