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