-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault_shapes.js
110 lines (110 loc) · 2.42 KB
/
default_shapes.js
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
module.exports = {
'0' : [ // Basic, single square: there is an empty border with width 1 around it.
{x:1,y:1},
{x:5,y:1},
{x:5,y:5},
{x:1,y:5}
],
'1' : [ // Extends to left edge.
{x:0,y:1},
{x:5,y:1},
{x:5,y:5},
{x:0,y:5}
],
'5' : [ // Extends to left and bottom edges, with a small amount in the left-bottom corner not extended.
{x:0,y:1},
{x:5,y:1},
{x:5,y:6},
{x:1,y:6},
{x:1,y:5},
{x:0,y:5}
],
'7' : [ // Extends to left, bottom, and diagonal-left-bottom edges.
{x:0,y:1},
{x:5,y:1},
{x:5,y:6},
{x:0,y:6}
],
'17' : [ // Extends to left and right edges.
{x:0,y:1},
{x:6,y:1},
{x:6,y:5},
{x:0,y:5}
],
'21' : [ // A "T"-junction, extending to left, right, and bottom edges, with corners cut in bottom-left and -right.
{x:0,y:1},
{x:6,y:1},
{x:6,y:5},
{x:5,y:5},
{x:5,y:6},
{x:1,y:6},
{x:1,y:5},
{x:0,y:5}
],
'29' : [ // An "Oklahoma" shape, extending to left, right, right-bottom, and bottom edges, with the bottom-left corner untouched.
{x:0,y:1},
{x:6,y:1},
{x:6,y:6},
{x:1,y:6},
{x:1,y:5},
{x:0,y:5}
],
'31' : [ // Extends to left, right, and bottom, with corners also extended to the edge. Untouched line on top.
{x:0,y:1},
{x:6,y:1},
{x:6,y:6},
{x:0,y:6}
],
'53' : [ // Extends to all four sides, but only the top-right corner extends to the edge; all other corners untouched.
{x:0,y:1},
{x:1,y:1},
{x:1,y:0},
{x:6,y:0},
{x:6,y:5},
{x:5,y:5},
{x:5,y:6},
{x:1,y:6},
{x:1,y:5},
{x:0,y:5}
],
'85' : [ // Extends to all four edges with no corner extending fully. Forms a cross.
{x:0,y:1},
{x:1,y:1},
{x:1,y:0},
{x:5,y:0},
{x:5,y:1},
{x:6,y:1},
{x:6,y:5},
{x:5,y:5},
{x:5,y:6},
{x:1,y:6},
{x:1,y:5},
{x:0,y:5}
],
'95' : [ // Extends to all four edges with the top two corners untouched.
{x:0,y:1},
{x:1,y:1},
{x:1,y:0},
{x:5,y:0},
{x:5,y:1},
{x:6,y:1},
{x:6,y:6},
{x:0,y:6}
],
'127' : [ // This is the same shape as above, but turned on its side. Somehow they are different shapes. I am confused.
{x:0,y:1},
{x:1,y:1},
{x:1,y:0},
{x:6,y:0},
{x:6,y:6},
{x:1,y:6},
{x:1,y:5},
{x:0,y:5}
],
'255' : [ // Touches all four edges, with no corners "exposed".
{x:0,y:0},
{x:6,y:0},
{x:6,y:6},
{x:0,y:6}
]
};