-
Notifications
You must be signed in to change notification settings - Fork 0
/
bball.h
136 lines (125 loc) · 6.94 KB
/
bball.h
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
/* Copyright (c) 2018, Texas Instruments Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Texas Instruments Incorporated nor the names of
its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/
#include <grlib.h>
#include <stdint.h>
static const uint8_t pixel_bball8BPP_UNCOMP[] =
{
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xfb, 0xd0, 0xf8, 0xd0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xfe, 0xff, 0xff, 0xfc, 0xc8, 0xc1, 0xc1, 0x9d, 0x72, 0x9d, 0xc1, 0xa5, 0xd0, 0xff, 0xff, 0xff, 0xfe, 0xff,
0xff, 0xfe, 0xff, 0xfe, 0xd0, 0x9d, 0x9d, 0xc1, 0xc2, 0x73, 0x79, 0xc1, 0x9d, 0xba, 0x9d, 0xc9, 0xff, 0xfe, 0xff, 0xff,
0xff, 0xff, 0xfc, 0xf2, 0x96, 0xc7, 0xc1, 0xa4, 0xc1, 0x79, 0x9d, 0xa4, 0xc1, 0xc8, 0x9d, 0x4e, 0xa4, 0xfe, 0xff, 0xff,
0xff, 0xfe, 0xd0, 0x96, 0x55, 0x9d, 0xc8, 0xc1, 0xc8, 0x73, 0x79, 0xc1, 0x9e, 0x73, 0x4f, 0x9d, 0x97, 0xa5, 0xfc, 0xfe,
0xff, 0xfc, 0xc1, 0xc1, 0xc1, 0x55, 0x9d, 0xc8, 0xc1, 0x79, 0x9d, 0x9e, 0x72, 0x79, 0xc1, 0xc2, 0x9d, 0x9c, 0xcf, 0xff,
0xff, 0xc8, 0x9d, 0xc1, 0xc2, 0xc1, 0x55, 0x9d, 0xc8, 0xc1, 0xe2, 0x4e, 0x9e, 0xc1, 0x9e, 0x9d, 0x9e, 0x96, 0x7a, 0xff,
0xd6, 0xc7, 0xc1, 0xa4, 0xc1, 0xc8, 0xc1, 0x55, 0x9d, 0x9d, 0x79, 0x79, 0x79, 0x9d, 0xc1, 0x9d, 0xc1, 0x9d, 0x96, 0xfe,
0xfb, 0xc1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0xa4, 0x9c, 0x96, 0x9d, 0x9d, 0x55, 0x9d, 0x9d, 0x96, 0x72, 0x96, 0xa5, 0xff, 0xff, 0xfe, 0xff,
0xff, 0xfe, 0xff, 0xff, 0xff, 0xd0, 0x7a, 0x96, 0x72, 0x48, 0x72, 0x72, 0x73, 0x9e, 0xf8, 0xff, 0xff, 0xfe, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xfe, 0xd0, 0xf8, 0xc9, 0xfb, 0xd0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};
static const uint32_t palette_bball8BPP_UNCOMP[]=
{
0x000000, 0x000033, 0x000066, 0x000099,
0x0000cc, 0x0000ff, 0x003300, 0x003333,
0x003366, 0x003399, 0x0033cc, 0x0033ff,
0x006600, 0x006633, 0x006666, 0x006699,
0x0066cc, 0x0066ff, 0x009900, 0x009933,
0x009966, 0x009999, 0x0099cc, 0x0099ff,
0x00cc00, 0x00cc33, 0x00cc66, 0x00cc99,
0x00cccc, 0x00ccff, 0x00ff00, 0x00ff33,
0x00ff66, 0x00ff99, 0x00ffcc, 0x00ffff,
0x330000, 0x330033, 0x330066, 0x330099,
0x3300cc, 0x3300ff, 0x333300, 0x333333,
0x333366, 0x333399, 0x3333cc, 0x3333ff,
0x336600, 0x336633, 0x336666, 0x336699,
0x3366cc, 0x3366ff, 0x339900, 0x339933,
0x339966, 0x339999, 0x3399cc, 0x3399ff,
0x33cc00, 0x33cc33, 0x33cc66, 0x33cc99,
0x33cccc, 0x33ccff, 0x33ff00, 0x33ff33,
0x33ff66, 0x33ff99, 0x33ffcc, 0x33ffff,
0x660000, 0x660033, 0x660066, 0x660099,
0x6600cc, 0x6600ff, 0x663300, 0x663333,
0x663366, 0x663399, 0x6633cc, 0x6633ff,
0x666600, 0x666633, 0x666666, 0x666699,
0x6666cc, 0x6666ff, 0x669900, 0x669933,
0x669966, 0x669999, 0x6699cc, 0x6699ff,
0x66cc00, 0x66cc33, 0x66cc66, 0x66cc99,
0x66cccc, 0x66ccff, 0x66ff00, 0x66ff33,
0x66ff66, 0x66ff99, 0x66ffcc, 0x66ffff,
0x990000, 0x990033, 0x990066, 0x990099,
0x9900cc, 0x9900ff, 0x993300, 0x993333,
0x993366, 0x993399, 0x9933cc, 0x9933ff,
0x996600, 0x996633, 0x996666, 0x996699,
0x9966cc, 0x9966ff, 0x999900, 0x999933,
0x999966, 0x999999, 0x9999cc, 0x9999ff,
0x99cc00, 0x99cc33, 0x99cc66, 0x99cc99,
0x99cccc, 0x99ccff, 0x99ff00, 0x99ff33,
0x99ff66, 0x99ff99, 0x99ffcc, 0x99ffff,
0xcc0000, 0xcc0033, 0xcc0066, 0xcc0099,
0xcc00cc, 0xcc00ff, 0xcc3300, 0xcc3333,
0xcc3366, 0xcc3399, 0xcc33cc, 0xcc33ff,
0xcc6600, 0xcc6633, 0xcc6666, 0xcc6699,
0xcc66cc, 0xcc66ff, 0xcc9900, 0xcc9933,
0xcc9966, 0xcc9999, 0xcc99cc, 0xcc99ff,
0xcccc00, 0xcccc33, 0xcccc66, 0xcccc99,
0xcccccc, 0xccccff, 0xccff00, 0xccff33,
0xccff66, 0xccff99, 0xccffcc, 0xccffff,
0xff0000, 0xff0033, 0xff0066, 0xff0099,
0xff00cc, 0xff00ff, 0xff3300, 0xff3333,
0xff3366, 0xff3399, 0xff33cc, 0xff33ff,
0xff6600, 0xff6633, 0xff6666, 0xff6699,
0xff66cc, 0xff66ff, 0xff9900, 0xff9933,
0xff9966, 0xff9999, 0xff99cc, 0xff99ff,
0xffcc00, 0xffcc33, 0xffcc66, 0xffcc99,
0xffcccc, 0xffccff, 0xffff00, 0xffff33,
0xffff66, 0xffff99, 0xffffcc, 0xffffff,
0x121212, 0x181818, 0x1e1e1e, 0x242424,
0x2a2a2a, 0x303030, 0x363636, 0x3c3c3c,
0x424242, 0x484848, 0x4e4e4e, 0x545454,
0x5a5a5a, 0x606060, 0x666666, 0x6c6c6c,
0x727272, 0x787878, 0x7e7e7e, 0x848484,
0x8a8a8a, 0x909090, 0x969696, 0x9c9c9c,
0xa2a2a2, 0xa8a8a8, 0xaeaeae, 0xb4b4b4,
0xbababa, 0xc0c0c0, 0xc6c6c6, 0xcccccc,
0xd2d2d2, 0xd8d8d8, 0xdedede, 0xe4e4e4,
0xeaeaea, 0xf0f0f0, 0xf6f6f6, 0xfcfcfc
};
const Graphics_Image bball=
{
IMAGE_FMT_8BPP_UNCOMP,
20,
20,
256,
palette_bball8BPP_UNCOMP,
pixel_bball8BPP_UNCOMP,
};