mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
230 lines
16 KiB
C
230 lines
16 KiB
C
|
//------------------------------------------------------------------------------
|
||
|
// Original: Texture.svg
|
||
|
// Size: 32x32
|
||
|
// Format: RGBA
|
||
|
// Conversion:
|
||
|
// 1) SVG to 32x32 PNG with Inkscape
|
||
|
// 2) PNG to RGBA with ImageMagick (convert icon_texture.png icon_texture.rgba)
|
||
|
// 3) RGBA to C code with bin2c (bin2c icon_texture.rgba icon_texture > icon_texture.h)
|
||
|
//------------------------------------------------------------------------------
|
||
|
|
||
|
static const unsigned char icon_texture[] = {
|
||
|
255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,
|
||
|
0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,
|
||
|
255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,
|
||
|
255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,
|
||
|
255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,
|
||
|
0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,
|
||
|
255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,
|
||
|
255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,
|
||
|
255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,
|
||
|
0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,
|
||
|
255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,
|
||
|
255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,
|
||
|
255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,
|
||
|
0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,
|
||
|
255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,
|
||
|
255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,
|
||
|
255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,
|
||
|
0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,
|
||
|
255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,
|
||
|
255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,
|
||
|
255,255,255,0,255,255,255,0,131,132,131,34,191,192,191,151,217,217,217,
|
||
|
212,220,221,220,219,220,221,220,219,220,221,220,219,220,221,220,219,220,221,
|
||
|
220,219,220,220,220,219,220,220,220,219,220,220,220,219,219,220,219,219,219,
|
||
|
220,219,219,219,219,218,219,218,219,218,219,218,219,218,219,217,218,217,219,
|
||
|
217,218,217,219,217,217,216,219,216,217,216,219,216,217,216,219,216,216,215,
|
||
|
219,215,216,215,219,215,215,214,219,214,215,214,219,214,215,214,219,214,214,
|
||
|
213,219,213,214,213,219,199,200,199,188,160,160,159,99,255,255,255,0,255,
|
||
|
255,255,0,186,186,186,156,248,249,248,255,248,249,248,255,248,249,248,255,
|
||
|
248,249,248,255,248,249,248,255,248,249,248,255,248,248,247,255,247,248,247,
|
||
|
255,247,248,247,255,246,247,246,255,246,247,246,255,246,247,246,255,245,246,
|
||
|
245,255,245,246,245,255,245,245,244,255,244,245,244,255,244,245,244,255,243,
|
||
|
244,243,255,243,244,243,255,243,243,242,255,242,243,242,255,242,243,242,255,
|
||
|
242,242,241,255,241,242,241,255,241,241,240,255,240,241,240,255,240,241,240,
|
||
|
255,240,240,239,255,231,232,231,246,58,58,58,20,255,255,255,0,211,212,
|
||
|
211,218,248,249,248,255,248,249,248,255,248,249,248,255,248,249,248,255,248,
|
||
|
249,248,255,248,249,248,255,247,248,247,255,247,248,247,255,246,247,246,255,
|
||
|
246,247,246,255,246,247,246,255,245,246,245,255,245,246,245,255,245,245,244,
|
||
|
255,244,245,244,255,244,245,244,255,243,244,243,255,243,244,243,255,243,243,
|
||
|
242,255,242,243,242,255,242,243,242,255,242,242,241,255,241,242,241,255,241,
|
||
|
241,240,255,240,241,240,255,240,241,240,255,240,240,239,255,239,240,239,255,
|
||
|
239,239,238,255,148,148,148,94,255,255,255,0,214,215,214,226,248,249,248,
|
||
|
255,248,249,248,255,248,249,248,255,248,249,248,255,248,249,248,255,247,248,
|
||
|
247,255,247,248,247,255,246,247,246,255,246,247,246,255,246,247,246,255,245,
|
||
|
246,245,255,245,246,245,255,245,245,244,255,244,245,244,255,244,245,244,255,
|
||
|
243,244,243,255,243,244,243,255,243,243,242,255,242,243,242,255,242,243,242,
|
||
|
255,242,242,241,255,241,242,241,255,241,241,240,255,240,241,240,255,240,241,
|
||
|
240,255,240,240,239,255,239,240,239,255,239,239,238,255,239,239,238,255,148,
|
||
|
149,148,111,255,255,255,0,214,215,214,227,248,249,248,255,248,249,248,255,
|
||
|
248,249,248,255,248,249,248,255,247,248,247,255,247,248,247,255,246,247,246,
|
||
|
255,246,247,246,255,246,247,246,255,245,246,245,255,245,246,245,255,245,245,
|
||
|
244,255,244,245,244,255,244,245,244,255,243,244,243,255,243,244,243,255,243,
|
||
|
243,242,255,242,243,242,255,242,243,242,255,242,242,241,255,241,242,241,255,
|
||
|
241,241,240,255,240,241,240,255,240,241,240,255,240,240,239,255,239,240,239,
|
||
|
255,239,239,238,255,239,239,238,255,238,239,238,255,147,147,147,112,255,255,
|
||
|
255,0,214,215,214,227,248,249,248,255,248,249,248,255,248,249,248,255,247,
|
||
|
248,247,255,247,248,247,255,246,247,246,255,246,247,246,255,246,247,246,255,
|
||
|
245,246,245,255,245,246,245,255,245,245,244,255,244,245,244,255,244,245,244,
|
||
|
255,243,244,243,255,243,244,243,255,243,243,242,255,242,243,242,255,242,243,
|
||
|
242,255,242,242,241,255,241,242,241,255,241,241,240,255,240,241,240,255,240,
|
||
|
241,240,255,240,240,239,255,239,240,239,255,239,239,238,255,239,239,238,255,
|
||
|
238,239,238,255,238,238,237,255,147,147,147,112,255,255,255,0,214,215,214,
|
||
|
227,248,249,248,255,248,249,248,255,63,118,176,255,71,126,186,255,72,126,
|
||
|
186,255,72,128,188,255,73,129,188,255,74,129,189,255,75,130,190,255,75,
|
||
|
131,191,255,76,132,191,255,76,133,192,255,77,134,193,255,78,135,194,255,
|
||
|
79,135,194,255,79,137,195,255,80,138,196,255,81,138,197,255,81,139,197,
|
||
|
255,82,140,198,255,82,141,199,255,83,142,200,255,84,143,200,255,85,144,
|
||
|
201,255,85,144,202,255,86,145,203,255,116,153,194,255,238,238,237,255,237,
|
||
|
238,237,255,147,147,146,112,255,255,255,0,214,215,214,227,248,249,248,255,
|
||
|
247,248,247,255,71,124,183,255,78,131,194,255,79,132,195,255,80,133,196,
|
||
|
255,81,134,197,255,81,136,198,255,82,137,199,255,83,138,200,255,84,139,
|
||
|
201,255,85,140,202,255,86,142,203,255,87,143,204,255,88,144,205,255,89,
|
||
|
145,206,255,89,146,207,255,90,148,208,255,91,149,209,255,92,150,210,255,
|
||
|
93,151,211,255,94,152,212,255,95,154,213,255,96,155,214,255,97,156,215,
|
||
|
255,97,157,216,255,123,161,199,255,237,238,237,255,237,237,236,255,147,147,
|
||
|
146,112,255,255,255,0,214,215,214,227,247,248,247,255,247,248,247,255,79,
|
||
|
130,183,255,89,139,194,255,86,137,194,255,83,135,194,255,80,133,194,255,
|
||
|
78,131,194,255,79,133,195,255,80,134,196,255,84,131,189,255,86,126,181,
|
||
|
255,83,123,178,255,83,121,175,255,81,119,174,255,79,117,171,255,78,114,
|
||
|
168,255,77,112,166,255,75,110,164,255,73,108,161,255,73,105,159,255,71,
|
||
|
103,157,255,69,101,153,255,68,100,152,255,74,112,166,255,89,142,200,255,
|
||
|
122,160,198,255,237,238,237,255,237,237,236,255,146,147,146,112,255,255,255,
|
||
|
0,213,214,213,227,247,248,247,255,247,248,247,255,98,143,189,255,100,147,
|
||
|
194,255,97,145,194,255,94,143,194,255,91,140,194,255,88,138,194,255,85,
|
||
|
136,194,255,85,133,191,255,85,128,185,255,83,126,182,255,82,124,180,255,
|
||
|
81,123,179,255,80,121,177,255,79,119,176,255,78,117,174,255,77,116,172,
|
||
|
255,76,114,170,255,75,113,169,255,75,112,166,255,73,110,165,255,71,109,
|
||
|
163,255,71,107,162,255,71,108,162,255,75,114,170,255,127,159,196,255,237,
|
||
|
237,236,255,236,237,236,255,146,146,145,112,255,255,255,0,213,214,213,227,
|
||
|
247,248,247,255,246,247,246,255,100,145,188,255,110,155,194,255,107,153,194,
|
||
|
255,104,150,194,255,101,148,194,255,98,146,194,255,96,144,194,255,92,142,
|
||
|
194,255,90,140,194,255,87,137,194,255,84,135,194,255,81,133,194,255,78,
|
||
|
131,194,255,79,132,195,255,80,133,196,255,81,135,197,255,82,136,198,255,
|
||
|
82,137,199,255,82,136,199,255,79,133,195,255,76,130,189,255,72,124,182,
|
||
|
255,67,117,174,255,62,110,165,255,117,142,174,255,236,237,236,255,236,236,
|
||
|
235,255,146,146,145,112,255,255,255,0,213,214,213,227,246,247,246,255,246,
|
||
|
247,246,255,107,150,187,255,121,163,194,255,118,160,194,255,115,158,194,255,
|
||
|
112,156,194,255,109,154,194,255,106,152,194,255,103,150,194,255,100,147,194,
|
||
|
255,97,145,194,255,94,143,194,255,91,141,194,255,87,138,193,255,80,131,
|
||
|
188,255,72,122,182,255,64,113,173,255,56,103,161,255,47,91,148,255,41,
|
||
|
83,138,255,38,79,132,255,35,74,126,255,31,69,120,255,28,64,113,255,
|
||
|
24,59,107,255,121,141,170,255,236,236,235,255,236,236,235,255,145,146,145,
|
||
|
112,255,255,255,0,212,213,212,227,246,247,246,255,246,246,245,255,115,156,
|
||
|
187,255,131,171,194,255,128,168,194,255,126,166,194,255,123,164,194,255,120,
|
||
|
162,194,255,117,160,194,255,114,157,194,255,107,152,194,255,92,140,190,255,
|
||
|
78,128,184,255,68,118,177,255,60,108,171,255,56,104,164,255,53,100,159,
|
||
|
255,50,96,153,255,47,91,148,255,44,87,142,255,40,82,136,255,37,77,
|
||
|
130,255,34,73,124,255,30,68,118,255,27,63,112,255,24,58,106,255,120,
|
||
|
141,169,255,236,236,235,255,235,236,235,255,145,145,145,112,255,255,255,0,
|
||
|
212,213,212,227,246,246,245,255,245,246,245,255,115,156,186,255,136,174,194,
|
||
|
255,136,174,194,255,136,174,194,255,132,172,193,255,116,158,191,255,96,142,
|
||
|
188,255,77,127,184,255,65,117,179,255,63,114,177,255,62,112,174,255,59,
|
||
|
109,170,255,57,105,166,255,54,102,161,255,51,98,156,255,49,93,151,255,
|
||
|
45,89,145,255,42,85,139,255,39,80,134,255,36,76,128,255,33,71,122,
|
||
|
255,29,66,116,255,26,62,110,255,23,57,104,255,120,140,168,255,235,236,
|
||
|
235,255,235,235,234,255,145,145,145,112,255,255,255,0,212,212,212,227,245,
|
||
|
246,245,255,245,246,245,255,143,163,170,255,147,178,193,255,133,172,193,255,
|
||
|
100,143,182,255,67,116,173,255,61,111,173,255,62,112,174,255,62,112,174,
|
||
|
255,61,111,173,255,60,110,171,255,59,108,169,255,57,105,165,255,55,102,
|
||
|
161,255,52,98,157,255,49,95,152,255,47,91,147,255,44,87,142,255,41,
|
||
|
82,136,255,38,78,131,255,34,74,125,255,31,69,120,255,28,65,114,255,
|
||
|
25,60,108,255,22,55,102,255,119,140,168,255,235,235,234,255,235,235,234,
|
||
|
255,145,145,144,112,255,255,255,0,212,212,212,227,245,246,245,255,244,245,
|
||
|
244,255,179,178,163,255,160,160,144,255,119,117,100,255,83,89,96,255,62,
|
||
|
98,145,255,58,107,167,255,58,107,168,255,58,107,168,255,58,107,167,255,
|
||
|
57,105,166,255,56,103,163,255,54,101,160,255,52,98,156,255,50,95,152,
|
||
|
255,47,91,148,255,44,88,143,255,42,84,138,255,39,80,133,255,36,76,
|
||
|
128,255,33,71,123,255,30,67,117,255,27,63,111,255,23,58,106,255,20,
|
||
|
54,100,255,119,139,166,255,235,235,234,255,234,235,234,255,145,145,144,112,
|
||
|
255,255,255,0,212,212,212,227,244,245,244,255,244,245,244,255,128,133,117,
|
||
|
255,169,158,132,255,148,140,112,255,104,103,83,255,111,108,91,255,91,90,
|
||
|
85,255,72,91,115,255,59,97,146,255,55,102,161,255,54,101,160,255,52,
|
||
|
99,157,255,51,97,155,255,49,94,151,255,47,91,148,255,45,88,144,255,
|
||
|
42,84,139,255,40,81,134,255,37,77,130,255,34,73,125,255,31,69,119,
|
||
|
255,28,65,114,255,25,60,109,255,22,56,103,255,19,52,98,255,118,138,
|
||
|
165,255,234,235,234,255,234,234,233,255,145,145,144,112,255,255,255,0,212,
|
||
|
212,211,227,244,245,244,255,244,245,244,255,124,128,111,255,140,133,107,255,
|
||
|
87,88,64,255,114,113,93,255,165,154,129,255,128,121,105,255,116,117,94,
|
||
|
255,107,108,87,255,107,96,83,255,96,92,90,255,70,88,112,255,51,90,
|
||
|
140,255,46,90,146,255,44,87,143,255,42,84,139,255,40,81,135,255,37,
|
||
|
77,130,255,35,74,126,255,35,70,119,255,29,66,116,255,26,62,111,255,
|
||
|
23,58,106,255,20,54,100,255,17,49,95,255,117,137,164,255,234,234,233,
|
||
|
255,234,234,233,255,144,144,144,112,255,255,255,0,211,212,211,227,244,245,
|
||
|
244,255,243,244,243,255,122,126,107,255,97,98,76,255,101,100,78,255,116,
|
||
|
113,99,255,159,146,122,255,149,139,114,255,151,138,115,255,146,136,111,255,
|
||
|
117,106,87,255,140,125,103,255,123,106,87,255,109,94,79,255,57,83,119,
|
||
|
255,41,83,138,255,39,80,134,255,37,77,130,255,35,74,126,255,79,88,
|
||
|
95,255,113,106,89,255,60,72,90,255,24,59,107,255,21,55,102,255,18,
|
||
|
51,97,255,15,47,92,255,116,136,162,255,234,234,233,255,233,233,232,255,
|
||
|
144,144,144,112,255,255,255,0,211,212,211,227,243,244,243,255,243,244,243,
|
||
|
255,245,245,244,255,245,246,245,255,245,246,245,255,245,245,245,255,245,245,
|
||
|
245,255,245,245,244,255,244,245,244,255,244,245,244,255,244,244,243,255,243,
|
||
|
244,243,255,243,243,242,255,243,243,242,255,242,243,242,255,242,242,242,255,
|
||
|
242,242,242,255,242,242,241,255,242,242,241,255,241,242,241,255,241,241,240,
|
||
|
255,241,241,240,255,240,240,239,255,240,240,239,255,239,240,239,255,239,239,
|
||
|
239,255,238,238,237,255,233,233,232,255,233,233,232,255,144,144,144,112,255,
|
||
|
255,255,0,210,211,210,227,243,244,243,255,243,243,242,255,242,243,242,255,
|
||
|
242,243,242,255,242,242,241,255,241,242,241,255,241,241,240,255,240,241,240,
|
||
|
255,240,241,240,255,240,240,239,255,239,240,239,255,239,239,238,255,239,239,
|
||
|
238,255,238,239,238,255,238,238,237,255,237,238,237,255,237,237,236,255,237,
|
||
|
237,236,255,236,237,236,255,236,236,235,255,236,236,235,255,235,235,234,255,
|
||
|
235,235,234,255,234,235,234,255,234,234,233,255,234,234,233,255,233,233,232,
|
||
|
255,233,233,232,255,233,233,232,255,144,144,143,112,255,255,255,0,210,211,
|
||
|
210,227,243,243,242,255,242,243,242,255,242,243,242,255,242,242,241,255,241,
|
||
|
242,241,255,241,241,240,255,240,241,240,255,240,241,240,255,240,240,239,255,
|
||
|
239,240,239,255,239,239,238,255,239,239,238,255,238,239,238,255,238,238,237,
|
||
|
255,237,238,237,255,237,237,236,255,237,237,236,255,236,237,236,255,236,236,
|
||
|
235,255,236,236,235,255,235,235,234,255,235,235,234,255,234,235,234,255,234,
|
||
|
234,233,255,234,234,233,255,233,233,232,255,233,233,232,255,233,233,232,255,
|
||
|
232,232,231,255,144,144,143,112,255,255,255,0,210,210,209,227,242,243,242,
|
||
|
255,242,243,242,255,242,242,241,255,241,242,241,255,241,241,240,255,240,241,
|
||
|
240,255,240,241,240,255,240,240,239,255,239,240,239,255,239,239,238,255,239,
|
||
|
239,238,255,238,239,238,255,238,238,237,255,237,238,237,255,237,237,236,255,
|
||
|
237,237,236,255,236,237,236,255,236,236,235,255,236,236,235,255,235,235,234,
|
||
|
255,235,235,234,255,234,235,234,255,234,234,233,255,234,234,233,255,233,233,
|
||
|
232,255,233,233,232,255,233,233,232,255,232,232,231,255,232,232,231,255,143,
|
||
|
143,143,112,255,255,255,0,188,189,188,202,242,243,242,255,242,242,241,255,
|
||
|
241,242,241,255,241,241,240,255,241,241,240,255,240,241,240,255,240,240,239,
|
||
|
255,239,240,239,255,239,239,238,255,239,239,238,255,238,239,238,255,238,238,
|
||
|
237,255,238,238,237,255,237,237,236,255,237,237,236,255,236,237,236,255,236,
|
||
|
236,235,255,236,236,235,255,235,236,235,255,235,235,234,255,234,235,234,255,
|
||
|
234,234,233,255,234,234,233,255,233,233,232,255,233,233,232,255,233,233,232,
|
||
|
255,232,232,231,255,232,232,231,255,231,232,231,255,104,104,104,66,255,255,
|
||
|
255,0,136,136,136,122,232,232,231,248,241,242,241,255,241,242,241,255,241,
|
||
|
241,240,255,240,241,240,255,240,240,239,255,239,240,239,255,239,240,239,255,
|
||
|
239,239,238,255,238,239,238,255,238,238,237,255,238,238,237,255,237,238,237,
|
||
|
255,237,237,236,255,236,237,236,255,236,236,235,255,236,236,235,255,235,236,
|
||
|
235,255,235,235,234,255,235,235,234,255,234,234,233,255,234,234,233,255,233,
|
||
|
234,233,255,233,233,232,255,233,233,232,255,232,232,231,255,232,232,231,255,
|
||
|
231,232,231,255,187,187,186,220,26,26,26,5,255,255,255,0,26,26,26,
|
||
|
5,36,36,36,67,109,109,109,141,117,117,117,151,117,117,117,151,117,117,
|
||
|
116,151,116,117,116,151,116,117,116,151,116,116,116,151,116,116,116,151,116,
|
||
|
116,115,151,116,116,115,151,115,116,115,151,115,115,115,151,115,115,115,151,
|
||
|
115,115,115,151,115,115,115,151,115,115,115,151,115,115,114,151,115,115,114,
|
||
|
151,114,114,114,151,114,114,114,151,114,114,114,151,114,114,113,151,114,114,
|
||
|
113,151,113,113,113,151,113,113,113,151,113,113,113,151,74,74,74,107,26,
|
||
|
26,26,32,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,
|
||
|
255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,
|
||
|
0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,
|
||
|
255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,
|
||
|
255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,
|
||
|
255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,
|
||
|
0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,
|
||
|
255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,
|
||
|
255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,
|
||
|
255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,
|
||
|
0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,
|
||
|
255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,
|
||
|
255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,
|
||
|
255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,
|
||
|
0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,
|
||
|
255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,
|
||
|
255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,
|
||
|
255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,
|
||
|
0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,
|
||
|
255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,255,255,0,255,
|
||
|
255,255,0,255,255,255,0,255,255,255,0,
|
||
|
0
|
||
|
};
|