-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpointer.h
31 lines (28 loc) · 1.57 KB
/
pointer.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
/* GIMP header image file format (RGB): /Users/theosib/Downloads/pointer.h */
static unsigned int width = 16;
static unsigned int height = 16;
/* Call this macro repeatedly. After each use, the pixel data can be extracted */
#define HEADER_PIXEL(data,pixel) {\
pixel[0] = (((data[0] - 33) << 2) | ((data[1] - 33) >> 4)); \
pixel[1] = ((((data[1] - 33) & 0xF) << 4) | ((data[2] - 33) >> 2)); \
pixel[2] = ((((data[2] - 33) & 0x3) << 6) | ((data[3] - 33))); \
data += 4; \
}
static const char *header_data =
"````````!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`"
"````!!!!````````!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`"
"!!$`````!!!!!!!!````````!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`"
"!!$`````!!!!!!!!!!!!!!!!````````!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`"
"!!$`!!$`````!!!!!!!!!!!!!!!!!!!!````````!!$`!!$`!!$`!!$`!!$`!!$`"
"!!$`!!$`````!!!!!!!!!!!!!!!!!!!!!!!!!!!!````````!!$`!!$`!!$`!!$`"
"!!$`!!$`!!$`````!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!````````!!$`!!$`"
"!!$`!!$`!!$`````!!!!!!!!!!!!!!!!!!!!!!!!````````!!$`!!$`!!$`!!$`"
"!!$`!!$`!!$`!!$`````!!!!!!!!!!!!!!!!````!!$`!!$`!!$`!!$`!!$`!!$`"
"!!$`!!$`!!$`!!$`````!!!!!!!!!!!!````!!!!````!!$`!!$`!!$`!!$`!!$`"
"!!$`!!$`!!$`!!$`!!$`````!!!!````!!$`````!!!!````!!$`!!$`!!$`!!$`"
"!!$`!!$`!!$`!!$`!!$`````!!!!````!!$`!!$`````!!!!````!!$`!!$`!!$`"
"!!$`!!$`!!$`!!$`!!$`!!$`````!!$`!!$`!!$`!!$`````!!!!````!!$`!!$`"
"!!$`!!$`!!$`!!$`!!$`!!$`````!!$`!!$`!!$`!!$`!!$`````!!!!````!!$`"
"!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`````!!!!````"
"!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`!!$`````````"
"";