-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmondrian.no.1.js
102 lines (79 loc) · 3.21 KB
/
mondrian.no.1.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
var c = document.getElementById("no1");
var verticalOne = c.getContext("2d");
verticalOne.moveTo(90,0);
verticalOne.lineTo(90,200);
verticalOne.stroke();
var verticalTwo = c.getContext("2d");
verticalTwo.moveTo(95,0);
verticalTwo.lineTo(95,200);
verticalTwo.stroke();
var verticalThree = c.getContext("2d");
verticalThree.moveTo(165,120);
verticalThree.lineTo(165,200);
verticalThree.stroke();
var horizontalOne = c.getContext("2d");
horizontalOne.moveTo(0,90);
horizontalOne.lineTo(200,90);
horizontalOne.stroke();
var horizontalTwo = c.getContext("2d");
horizontalTwo.moveTo(0,95);
horizontalTwo.lineTo(200,95);
horizontalTwo.stroke();
var horizontalThree = c.getContext("2d");
horizontalThree.moveTo(0,120);
horizontalThree.lineTo(200,120);
horizontalThree.stroke();
var horizontalFour = c.getContext("2d");
horizontalThree.moveTo(95,185);
horizontalThree.lineTo(166,185);
horizontalThree.stroke();
var regionOne = c.getContext("2d");
regionOne.fillStyle = "#E2E2E2";
regionOne.fillRect(0,0,90,90);
var regionTwo = c.getContext("2d");
regionOne.fillStyle = "#FF0000";
regionOne.fillRect(90,0,5,90);
var regionThree = c.getContext("2d");
regionOne.fillStyle = "#FF0000";
regionOne.fillRect(95,0,105,90);
var regionFour = c.getContext("2d");
regionOne.fillStyle = "#008000";
regionOne.fillRect(0,90,90,5);
var regionFive = c.getContext("2d");
regionOne.fillStyle = "#FFC300";
regionOne.fillRect(90,90,5,5);
var regionSix = c.getContext("2d");
regionOne.fillStyle = "#008000";
regionOne.fillRect(95,90,105,5);
var regionSeven = c.getContext("2d");
regionOne.fillStyle = "#FF0000";
regionOne.fillRect(0,95,90,25);
var regionEnight = c.getContext("2d");
regionOne.fillStyle = "#FF0000";
regionOne.fillRect(90,95,5,25);
var regionNine = c.getContext("2d");
regionOne.fillStyle = "#FFC300";
regionOne.fillRect(95,95,105,25);
var regionTen = c.getContext("2d");
regionOne.fillStyle = "#FF0000";
regionOne.fillRect(0,120,90,80);
var regionEleven = c.getContext("2d");
regionOne.fillStyle = "#008000";
regionOne.fillRect(90,120,5,80);
var regionTwelve = c.getContext("2d");
regionOne.fillStyle = "#ffffff";
regionOne.fillRect(95,120,70,65);
var regionThirteen = c.getContext("2d");
regionOne.fillStyle = "#FF0000";
regionOne.fillRect(95,185,70,65);
var regionFourteen = c.getContext("2d");
regionOne.fillStyle = "#ffffff";
regionOne.fillRect(165,120,35,80);
var sLast = c.getContext("2d");
sLast.moveTo(0,0);
sLast.lineTo(0,0);
sLast.stroke();
var lLast = c.getContext("2d");
lLast.moveTo(0,0);
lLast.lineTo(0,0);
lLast.stroke();