Diffstat (limited to 'frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js index 288e0be..2462d0e 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js | |||
@@ -1,403 +1,400 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | // | 26 | // |
30 | //normal.js | 27 | //normal.js |
31 | //normal | 28 | //normal |
32 | // | 29 | // |
33 | //Created by Giulio Cesare Solaroli on 3/24/10 | 30 | //Created by Giulio Cesare Solaroli on 3/24/10 |
34 | //Copyright 2010 Clipperz | 31 | //Copyright 2010 Clipperz |
35 | //This code was generated by Opacity. You may use or modify it in any way. | 32 | //This code was generated by Opacity. You may use or modify it in any way. |
36 | // | 33 | // |
37 | 34 | ||
38 | var kClipperz_PM_UI_Canvas_RegisterButton_normalWidth = 282.0; | 35 | var kClipperz_PM_UI_Canvas_RegisterButton_normalWidth = 282.0; |
39 | var kClipperz_PM_UI_Canvas_RegisterButton_normalHeight = 93.0; | 36 | var kClipperz_PM_UI_Canvas_RegisterButton_normalHeight = 93.0; |
40 | 37 | ||
41 | function Clipperz_PM_UI_Canvas_RegisterButton_normal(canvas, aBackgroundColor, aDarkBackgroundColor, aLightColor, aDarkColor, aStarColor) | 38 | function Clipperz_PM_UI_Canvas_RegisterButton_normal(canvas, aBackgroundColor, aDarkBackgroundColor, aLightColor, aDarkColor, aStarColor) |
42 | { | 39 | { |
43 | var context = canvas.getContext("2d"); | 40 | var context = canvas.getContext("2d"); |
44 | var alignStroke; | 41 | var alignStroke; |
45 | var resolution; | 42 | var resolution; |
46 | var path; | 43 | var path; |
47 | var pointX; | 44 | var pointX; |
48 | var pointY; | 45 | var pointY; |
49 | var controlPoint1X; | 46 | var controlPoint1X; |
50 | var controlPoint1Y; | 47 | var controlPoint1Y; |
51 | var controlPoint2X; | 48 | var controlPoint2X; |
52 | var controlPoint2Y; | 49 | var controlPoint2Y; |
53 | var gradient; | 50 | var gradient; |
54 | var color; | 51 | var color; |
55 | if (window.devicePixelRatio) | 52 | if (window.devicePixelRatio) |
56 | resolution = window.devicePixelRatio; | 53 | resolution = window.devicePixelRatio; |
57 | else | 54 | else |
58 | resolution = 1.0; | 55 | resolution = 1.0; |
59 | resolution *= 0.5 * (canvas.width / kClipperz_PM_UI_Canvas_RegisterButton_normalWidth + canvas.height / kClipperz_PM_UI_Canvas_RegisterButton_normalHeight); | 56 | resolution *= 0.5 * (canvas.width / kClipperz_PM_UI_Canvas_RegisterButton_normalWidth + canvas.height / kClipperz_PM_UI_Canvas_RegisterButton_normalHeight); |
60 | 57 | ||
61 | context.save(); | 58 | context.save(); |
62 | context.scale(canvas.width / kClipperz_PM_UI_Canvas_RegisterButton_normalWidth, canvas.height / kClipperz_PM_UI_Canvas_RegisterButton_normalHeight); | 59 | context.scale(canvas.width / kClipperz_PM_UI_Canvas_RegisterButton_normalWidth, canvas.height / kClipperz_PM_UI_Canvas_RegisterButton_normalHeight); |
63 | context.clearRect(0.0, 0.0, kClipperz_PM_UI_Canvas_RegisterButton_normalWidth, kClipperz_PM_UI_Canvas_RegisterButton_normalHeight); | 60 | context.clearRect(0.0, 0.0, kClipperz_PM_UI_Canvas_RegisterButton_normalWidth, kClipperz_PM_UI_Canvas_RegisterButton_normalHeight); |
64 | 61 | ||
65 | // background | 62 | // background |
66 | 63 | ||
67 | alignStroke = 0.0; | 64 | alignStroke = 0.0; |
68 | context.beginPath(); | 65 | context.beginPath(); |
69 | pointX = 241.0; | 66 | pointX = 241.0; |
70 | pointY = 80.0; | 67 | pointY = 80.0; |
71 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 68 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
72 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 69 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
73 | context.moveTo(pointX, pointY); | 70 | context.moveTo(pointX, pointY); |
74 | pointX = 274.0; | 71 | pointX = 274.0; |
75 | pointY = 47.0; | 72 | pointY = 47.0; |
76 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 73 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
77 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 74 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
78 | controlPoint1X = 259.103; | 75 | controlPoint1X = 259.103; |
79 | controlPoint1Y = 80.0; | 76 | controlPoint1Y = 80.0; |
80 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | 77 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; |
81 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | 78 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; |
82 | controlPoint2X = 274.0; | 79 | controlPoint2X = 274.0; |
83 | controlPoint2Y = 65.103; | 80 | controlPoint2Y = 65.103; |
84 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | 81 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; |
85 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | 82 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; |
86 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | 83 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); |
87 | pointX = 274.0; | 84 | pointX = 274.0; |
88 | pointY = 45.0; | 85 | pointY = 45.0; |
89 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 86 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
90 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 87 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
91 | context.lineTo(pointX, pointY); | 88 | context.lineTo(pointX, pointY); |
92 | pointX = 241.0; | 89 | pointX = 241.0; |
93 | pointY = 12.0; | 90 | pointY = 12.0; |
94 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 91 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
95 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 92 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
96 | controlPoint1X = 274.0; | 93 | controlPoint1X = 274.0; |
97 | controlPoint1Y = 26.897; | 94 | controlPoint1Y = 26.897; |
98 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | 95 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; |
99 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | 96 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; |
100 | controlPoint2X = 259.103; | 97 | controlPoint2X = 259.103; |
101 | controlPoint2Y = 12.0; | 98 | controlPoint2Y = 12.0; |
102 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | 99 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; |
103 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | 100 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; |
104 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | 101 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); |
105 | pointX = 60.0; | 102 | pointX = 60.0; |
106 | pointY = 12.0; | 103 | pointY = 12.0; |
107 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 104 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
108 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 105 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
109 | context.lineTo(pointX, pointY); | 106 | context.lineTo(pointX, pointY); |
110 | pointX = 27.0; | 107 | pointX = 27.0; |
111 | pointY = 45.0; | 108 | pointY = 45.0; |
112 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 109 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
113 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 110 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
114 | controlPoint1X = 41.897; | 111 | controlPoint1X = 41.897; |
115 | controlPoint1Y = 12.0; | 112 | controlPoint1Y = 12.0; |
116 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | 113 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; |
117 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | 114 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; |
118 | controlPoint2X = 27.0; | 115 | controlPoint2X = 27.0; |
119 | controlPoint2Y = 26.897; | 116 | controlPoint2Y = 26.897; |
120 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | 117 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; |
121 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | 118 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; |
122 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | 119 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); |
123 | pointX = 27.0; | 120 | pointX = 27.0; |
124 | pointY = 47.0; | 121 | pointY = 47.0; |
125 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 122 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
126 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 123 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
127 | context.lineTo(pointX, pointY); | 124 | context.lineTo(pointX, pointY); |
128 | pointX = 60.0; | 125 | pointX = 60.0; |
129 | pointY = 80.0; | 126 | pointY = 80.0; |
130 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 127 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
131 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 128 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
132 | controlPoint1X = 27.0; | 129 | controlPoint1X = 27.0; |
133 | controlPoint1Y = 65.103; | 130 | controlPoint1Y = 65.103; |
134 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | 131 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; |
135 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | 132 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; |
136 | controlPoint2X = 41.897; | 133 | controlPoint2X = 41.897; |
137 | controlPoint2Y = 80.0; | 134 | controlPoint2Y = 80.0; |
138 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | 135 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; |
139 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | 136 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; |
140 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | 137 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); |
141 | pointX = 241.0; | 138 | pointX = 241.0; |
142 | pointY = 80.0; | 139 | pointY = 80.0; |
143 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 140 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
144 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 141 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
145 | context.lineTo(pointX, pointY); | 142 | context.lineTo(pointX, pointY); |
146 | context.closePath(); | 143 | context.closePath(); |
147 | gradient = context.createLinearGradient(150.5, 12.0, 150.5, 80.0); | 144 | gradient = context.createLinearGradient(150.5, 12.0, 150.5, 80.0); |
148 | gradient.addColorStop(0.0, aBackgroundColor); | 145 | gradient.addColorStop(0.0, aBackgroundColor); |
149 | gradient.addColorStop(1.0, aDarkBackgroundColor); | 146 | gradient.addColorStop(1.0, aDarkBackgroundColor); |
150 | context.fillStyle = gradient; | 147 | context.fillStyle = gradient; |
151 | context.fill(); | 148 | context.fill(); |
152 | 149 | ||
153 | // round | 150 | // round |
154 | 151 | ||
155 | alignStroke = 0.0; | 152 | alignStroke = 0.0; |
156 | context.beginPath(); | 153 | context.beginPath(); |
157 | pointX = 44.103; | 154 | pointX = 44.103; |
158 | pointY = 4.014; | 155 | pointY = 4.014; |
159 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 156 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
160 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 157 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
161 | context.moveTo(pointX, pointY); | 158 | context.moveTo(pointX, pointY); |
162 | pointX = 65.629; | 159 | pointX = 65.629; |
163 | pointY = 10.515; | 160 | pointY = 10.515; |
164 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 161 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
165 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 162 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
166 | controlPoint1X = 51.706; | 163 | controlPoint1X = 51.706; |
167 | controlPoint1Y = 4.217; | 164 | controlPoint1Y = 4.217; |
168 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | 165 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; |
169 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | 166 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; |
170 | controlPoint2X = 59.185; | 167 | controlPoint2X = 59.185; |
171 | controlPoint2Y = 6.475; | 168 | controlPoint2Y = 6.475; |
172 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | 169 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; |
173 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | 170 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; |
174 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | 171 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); |
175 | pointX = 78.65; | 172 | pointX = 78.65; |
176 | pointY = 70.918; | 173 | pointY = 70.918; |
177 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 174 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
178 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 175 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
179 | context.lineTo(pointX, pointY); | 176 | context.lineTo(pointX, pointY); |
180 | pointX = 43.0; | 177 | pointX = 43.0; |
181 | pointY = 90.0; | 178 | pointY = 90.0; |
182 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 179 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
183 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 180 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
184 | controlPoint1X = 70.676; | 181 | controlPoint1X = 70.676; |
185 | controlPoint1Y = 82.788; | 182 | controlPoint1Y = 82.788; |
186 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | 183 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; |
187 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | 184 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; |
188 | controlPoint2X = 57.23; | 185 | controlPoint2X = 57.23; |
189 | controlPoint2Y = 89.817; | 186 | controlPoint2Y = 89.817; |
190 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | 187 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; |
191 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | 188 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; |
192 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | 189 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); |
193 | pointX = 0.056; | 190 | pointX = 0.056; |
194 | pointY = 44.801; | 191 | pointY = 44.801; |
195 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 192 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
196 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 193 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
197 | controlPoint1X = 18.834; | 194 | controlPoint1X = 18.834; |
198 | controlPoint1Y = 90.07; | 195 | controlPoint1Y = 90.07; |
199 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | 196 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; |
200 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | 197 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; |
201 | controlPoint2X = -1.18; | 198 | controlPoint2X = -1.18; |
202 | controlPoint2Y = 68.879; | 199 | controlPoint2Y = 68.879; |
203 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | 200 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; |
204 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | 201 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; |
205 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | 202 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); |
206 | pointX = 44.103; | 203 | pointX = 44.103; |
207 | pointY = 4.014; | 204 | pointY = 4.014; |
208 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 205 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
209 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 206 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
210 | controlPoint1X = 1.242; | 207 | controlPoint1X = 1.242; |
211 | controlPoint1Y = 21.708; | 208 | controlPoint1Y = 21.708; |
212 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | 209 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; |
213 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | 210 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; |
214 | controlPoint2X = 21.202; | 211 | controlPoint2X = 21.202; |
215 | controlPoint2Y = 3.72; | 212 | controlPoint2Y = 3.72; |
216 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | 213 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; |
217 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | 214 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; |
218 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | 215 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); |
219 | pointX = 44.103; | 216 | pointX = 44.103; |
220 | pointY = 4.014; | 217 | pointY = 4.014; |
221 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 218 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
222 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 219 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
223 | context.lineTo(pointX, pointY); | 220 | context.lineTo(pointX, pointY); |
224 | context.closePath(); | 221 | context.closePath(); |
225 | gradient = context.createLinearGradient(39.326, 90, 39.326, 4.011); | 222 | gradient = context.createLinearGradient(39.326, 90, 39.326, 4.011); |
226 | gradient.addColorStop(0.0, aDarkColor); | 223 | gradient.addColorStop(0.0, aDarkColor); |
227 | gradient.addColorStop(1.0, aLightColor); | 224 | gradient.addColorStop(1.0, aLightColor); |
228 | context.fillStyle = gradient; | 225 | context.fillStyle = gradient; |
229 | context.fill(); | 226 | context.fill(); |
230 | 227 | ||
231 | // * | 228 | // * |
232 | 229 | ||
233 | alignStroke = 0.0; | 230 | alignStroke = 0.0; |
234 | context.beginPath(); | 231 | context.beginPath(); |
235 | pointX = 23.983; | 232 | pointX = 23.983; |
236 | pointY = 35.944; | 233 | pointY = 35.944; |
237 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 234 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
238 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 235 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
239 | context.moveTo(pointX, pointY); | 236 | context.moveTo(pointX, pointY); |
240 | pointX = 37.25; | 237 | pointX = 37.25; |
241 | pointY = 40.261; | 238 | pointY = 40.261; |
242 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 239 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
243 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 240 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
244 | context.lineTo(pointX, pointY); | 241 | context.lineTo(pointX, pointY); |
245 | pointX = 37.25; | 242 | pointX = 37.25; |
246 | pointY = 24.963; | 243 | pointY = 24.963; |
247 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 244 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
248 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 245 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
249 | context.lineTo(pointX, pointY); | 246 | context.lineTo(pointX, pointY); |
250 | pointX = 48.231; | 247 | pointX = 48.231; |
251 | pointY = 24.963; | 248 | pointY = 24.963; |
252 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 249 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
253 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 250 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
254 | context.lineTo(pointX, pointY); | 251 | context.lineTo(pointX, pointY); |
255 | pointX = 48.231; | 252 | pointX = 48.231; |
256 | pointY = 40.261; | 253 | pointY = 40.261; |
257 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 254 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
258 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 255 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
259 | context.lineTo(pointX, pointY); | 256 | context.lineTo(pointX, pointY); |
260 | pointX = 61.498; | 257 | pointX = 61.498; |
261 | pointY = 35.944; | 258 | pointY = 35.944; |
262 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 259 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
263 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 260 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
264 | context.lineTo(pointX, pointY); | 261 | context.lineTo(pointX, pointY); |
265 | pointX = 64.481; | 262 | pointX = 64.481; |
266 | pointY = 45.402; | 263 | pointY = 45.402; |
267 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 264 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
268 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 265 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
269 | context.lineTo(pointX, pointY); | 266 | context.lineTo(pointX, pointY); |
270 | pointX = 50.961; | 267 | pointX = 50.961; |
271 | pointY = 49.592; | 268 | pointY = 49.592; |
272 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 269 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
273 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 270 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
274 | context.lineTo(pointX, pointY); | 271 | context.lineTo(pointX, pointY); |
275 | pointX = 59.784; | 272 | pointX = 59.784; |
276 | pointY = 62.224; | 273 | pointY = 62.224; |
277 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 274 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
278 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 275 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
279 | context.lineTo(pointX, pointY); | 276 | context.lineTo(pointX, pointY); |
280 | pointX = 51.659; | 277 | pointX = 51.659; |
281 | pointY = 68.0; | 278 | pointY = 68.0; |
282 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 279 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
283 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 280 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
284 | context.lineTo(pointX, pointY); | 281 | context.lineTo(pointX, pointY); |
285 | pointX = 42.836; | 282 | pointX = 42.836; |
286 | pointY = 56.066; | 283 | pointY = 56.066; |
287 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 284 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
288 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 285 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
289 | context.lineTo(pointX, pointY); | 286 | context.lineTo(pointX, pointY); |
290 | pointX = 33.759; | 287 | pointX = 33.759; |
291 | pointY = 68.0; | 288 | pointY = 68.0; |
292 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 289 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
293 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 290 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
294 | context.lineTo(pointX, pointY); | 291 | context.lineTo(pointX, pointY); |
295 | pointX = 25.634; | 292 | pointX = 25.634; |
296 | pointY = 62.224; | 293 | pointY = 62.224; |
297 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 294 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
298 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 295 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
299 | context.lineTo(pointX, pointY); | 296 | context.lineTo(pointX, pointY); |
300 | pointX = 34.521; | 297 | pointX = 34.521; |
301 | pointY = 49.592; | 298 | pointY = 49.592; |
302 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 299 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
303 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 300 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
304 | context.lineTo(pointX, pointY); | 301 | context.lineTo(pointX, pointY); |
305 | pointX = 21.0; | 302 | pointX = 21.0; |
306 | pointY = 45.402; | 303 | pointY = 45.402; |
307 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 304 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
308 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 305 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
309 | context.lineTo(pointX, pointY); | 306 | context.lineTo(pointX, pointY); |
310 | pointX = 23.983; | 307 | pointX = 23.983; |
311 | pointY = 35.944; | 308 | pointY = 35.944; |
312 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 309 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
313 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 310 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
314 | context.lineTo(pointX, pointY); | 311 | context.lineTo(pointX, pointY); |
315 | context.closePath(); | 312 | context.closePath(); |
316 | pointX = 68.607; | 313 | pointX = 68.607; |
317 | pointY = 119.099; | 314 | pointY = 119.099; |
318 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 315 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
319 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 316 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
320 | context.moveTo(pointX, pointY); | 317 | context.moveTo(pointX, pointY); |
321 | context.fillStyle = aStarColor; | 318 | context.fillStyle = aStarColor; |
322 | context.fill(); | 319 | context.fill(); |
323 | 320 | ||
324 | alignStroke = 0.0; | 321 | alignStroke = 0.0; |
325 | context.beginPath(); | 322 | context.beginPath(); |
326 | pointX = 212.0; | 323 | pointX = 212.0; |
327 | pointY = 125.0; | 324 | pointY = 125.0; |
328 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 325 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
329 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 326 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
330 | context.moveTo(pointX, pointY); | 327 | context.moveTo(pointX, pointY); |
331 | pointX = 213.0; | 328 | pointX = 213.0; |
332 | pointY = 125.0; | 329 | pointY = 125.0; |
333 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 330 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
334 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 331 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
335 | context.lineTo(pointX, pointY); | 332 | context.lineTo(pointX, pointY); |
336 | pointX = 212.5; | 333 | pointX = 212.5; |
337 | pointY = 124.0; | 334 | pointY = 124.0; |
338 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 335 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
339 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 336 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
340 | context.lineTo(pointX, pointY); | 337 | context.lineTo(pointX, pointY); |
341 | pointX = 212.0; | 338 | pointX = 212.0; |
342 | pointY = 125.0; | 339 | pointY = 125.0; |
343 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 340 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
344 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 341 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
345 | context.lineTo(pointX, pointY); | 342 | context.lineTo(pointX, pointY); |
346 | context.closePath(); | 343 | context.closePath(); |
347 | gradient = context.createLinearGradient(212.5, 125.0, 212.5, 124.0); | 344 | gradient = context.createLinearGradient(212.5, 125.0, 212.5, 124.0); |
348 | color = "#FFFFFF"; | 345 | color = "#FFFFFF"; |
349 | gradient.addColorStop(0.0, color); | 346 | gradient.addColorStop(0.0, color); |
350 | color = "#A9A9A9"; | 347 | color = "#A9A9A9"; |
351 | gradient.addColorStop(1.0, color); | 348 | gradient.addColorStop(1.0, color); |
352 | context.fillStyle = gradient; | 349 | context.fillStyle = gradient; |
353 | context.fill(); | 350 | context.fill(); |
354 | 351 | ||
355 | // flip | 352 | // flip |
356 | 353 | ||
357 | // Setup for Shadow Effect | 354 | // Setup for Shadow Effect |
358 | color = "rgba(0.0%, 0.0%, 0.0%, 0.5)"; | 355 | color = "rgba(0.0%, 0.0%, 0.0%, 0.5)"; |
359 | context.save(); | 356 | context.save(); |
360 | context.shadowColor = color; | 357 | context.shadowColor = color; |
361 | context.shadowBlur = 0.0; | 358 | context.shadowBlur = 0.0; |
362 | context.shadowOffsetX = 2.0 * Math.cos(8.377) * resolution; | 359 | context.shadowOffsetX = 2.0 * Math.cos(8.377) * resolution; |
363 | context.shadowOffsetY = 2.0 * Math.sin(8.377) * resolution; | 360 | context.shadowOffsetY = 2.0 * Math.sin(8.377) * resolution; |
364 | 361 | ||
365 | // round | 362 | // round |
366 | 363 | ||
367 | alignStroke = 0.0; | 364 | alignStroke = 0.0; |
368 | context.beginPath(); | 365 | context.beginPath(); |
369 | pointX = 78.506; | 366 | pointX = 78.506; |
370 | pointY = 70.251; | 367 | pointY = 70.251; |
371 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 368 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
372 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 369 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
373 | context.moveTo(pointX, pointY); | 370 | context.moveTo(pointX, pointY); |
374 | pointX = 66.155; | 371 | pointX = 66.155; |
375 | pointY = 12.954; | 372 | pointY = 12.954; |
376 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 373 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
377 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 374 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
378 | controlPoint1X = 59.899; | 375 | controlPoint1X = 59.899; |
379 | controlPoint1Y = 57.427; | 376 | controlPoint1Y = 57.427; |
380 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | 377 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; |
381 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | 378 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; |
382 | controlPoint2X = 54.678; | 379 | controlPoint2X = 54.678; |
383 | controlPoint2Y = 32.277; | 380 | controlPoint2Y = 32.277; |
384 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | 381 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; |
385 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | 382 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; |
386 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | 383 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); |
387 | pointX = 78.506; | 384 | pointX = 78.506; |
388 | pointY = 70.251; | 385 | pointY = 70.251; |
389 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | 386 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; |
390 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | 387 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; |
391 | context.lineTo(pointX, pointY); | 388 | context.lineTo(pointX, pointY); |
392 | context.closePath(); | 389 | context.closePath(); |
393 | gradient = context.createLinearGradient(69.301, 70.251, 69.301, 12.954); | 390 | gradient = context.createLinearGradient(69.301, 70.251, 69.301, 12.954); |
394 | gradient.addColorStop(0.0, aDarkColor); | 391 | gradient.addColorStop(0.0, aDarkColor); |
395 | gradient.addColorStop(1.0, aLightColor); | 392 | gradient.addColorStop(1.0, aLightColor); |
396 | context.fillStyle = gradient; | 393 | context.fillStyle = gradient; |
397 | context.fill(); | 394 | context.fill(); |
398 | 395 | ||
399 | // Shadow Effect | 396 | // Shadow Effect |
400 | context.restore(); | 397 | context.restore(); |
401 | 398 | ||
402 | context.restore(); | 399 | context.restore(); |
403 | } | 400 | } |