-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcursesMatrix.h
35 lines (31 loc) · 1.59 KB
/
cursesMatrix.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
#include <ncurses.h>
#define CWHITE COLOR_PAIR(1)
#define CYELLOW COLOR_PAIR(2)
#define CBLUE COLOR_PAIR(3)
#define CBLACK COLOR_PAIR(4)
const uint64_t patterns[][8][8] = {
{
// Humber logo, index 0
CBLUE, CBLUE, CBLUE, CBLUE, CBLUE, CBLUE, CBLUE, CBLUE,
CBLUE, CBLUE, CWHITE, CBLUE, CBLUE, CWHITE, CBLUE, CYELLOW,
CBLUE, CBLUE, CWHITE, CBLUE, CBLUE, CWHITE, CYELLOW, CYELLOW,
CBLUE, CBLUE, CWHITE, CBLUE, CBLUE, CWHITE, CYELLOW, CYELLOW,
CBLUE, CBLUE, CWHITE, CWHITE, CWHITE, CWHITE, CYELLOW, CYELLOW,
CBLUE, CBLUE, CWHITE, CYELLOW, CYELLOW, CWHITE, CYELLOW, CYELLOW,
CBLUE, CYELLOW, CWHITE, CYELLOW, CYELLOW, CWHITE, CYELLOW, CYELLOW,
CYELLOW, CYELLOW, CYELLOW, CYELLOW, CYELLOW, CYELLOW, CYELLOW, CYELLOW,
},
{
// White square, index 1
CWHITE, CWHITE, CWHITE, CWHITE, CWHITE, CWHITE, CWHITE, CWHITE,
CWHITE, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CWHITE,
CWHITE, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CWHITE,
CWHITE, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CWHITE,
CWHITE, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CWHITE,
CWHITE, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CWHITE,
CWHITE, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CBLACK, CWHITE,
CWHITE, CWHITE, CWHITE, CWHITE, CWHITE, CWHITE, CWHITE, CWHITE,
},
};
void cursDisplayPattern(int yOffset, int xOffset, const uint64_t pattern[8][8]);
void cursUpdateLevel(int yOffset, int xOffset, float xa, float ya);