author | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2011-10-02 23:56:18 (UTC) |
---|---|---|
committer | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2011-10-02 23:56:18 (UTC) |
commit | ef68436ac04da078ffdcacd7e1f785473a303d45 (patch) (unidiff) | |
tree | c403752d66a2c4775f00affd4fa8431b29c5b68c /frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js | |
parent | 597ecfbc0249d83e1b856cbd558340c01237a360 (diff) | |
download | clipperz-ef68436ac04da078ffdcacd7e1f785473a303d45.zip clipperz-ef68436ac04da078ffdcacd7e1f785473a303d45.tar.gz clipperz-ef68436ac04da078ffdcacd7e1f785473a303d45.tar.bz2 |
First version of the newly restructured repository
Diffstat (limited to 'frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js | 280 |
1 files changed, 280 insertions, 0 deletions
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js new file mode 100644 index 0000000..f3ae04d --- a/dev/null +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js | |||
@@ -0,0 +1,280 @@ | |||
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 | //exclamationMark.js | ||
31 | //! | ||
32 | // | ||
33 | //Created by Giulio Cesare Solaroli on 3/7/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_Marks_exclamationMarkWidth = 50.0; | ||
39 | var kClipperz_PM_UI_Canvas_Marks_exclamationMarkHeight = 50.0; | ||
40 | |||
41 | function Clipperz_PM_UI_Canvas_Marks_exclamationMark(canvas, aColor) | ||
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 | if (window.devicePixelRatio) | ||
54 | resolution = window.devicePixelRatio; | ||
55 | else | ||
56 | resolution = 1.0; | ||
57 | resolution *= 0.5 * (canvas.width / kClipperz_PM_UI_Canvas_Marks_exclamationMarkWidth + canvas.height / kClipperz_PM_UI_Canvas_Marks_exclamationMarkHeight); | ||
58 | |||
59 | context.save(); | ||
60 | context.scale(canvas.width / kClipperz_PM_UI_Canvas_Marks_exclamationMarkWidth, canvas.height / kClipperz_PM_UI_Canvas_Marks_exclamationMarkHeight); | ||
61 | context.clearRect(0.0, 0.0, kClipperz_PM_UI_Canvas_Marks_exclamationMarkWidth, kClipperz_PM_UI_Canvas_Marks_exclamationMarkHeight); | ||
62 | |||
63 | // Layer 1 | ||
64 | |||
65 | alignStroke = 0.0; | ||
66 | context.beginPath(); | ||
67 | pointX = 26.499; | ||
68 | pointY = 10.848; | ||
69 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
70 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
71 | context.moveTo(pointX, pointY); | ||
72 | pointX = 20.887; | ||
73 | pointY = 11.584; | ||
74 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
75 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
76 | controlPoint1X = 25.395; | ||
77 | controlPoint1Y = 10.802; | ||
78 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
79 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
80 | controlPoint2X = 22.175; | ||
81 | controlPoint2Y = 11.078; | ||
82 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
83 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
84 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
85 | pointX = 20.013; | ||
86 | pointY = 13.194; | ||
87 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
88 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
89 | controlPoint1X = 20.335; | ||
90 | controlPoint1Y = 11.814; | ||
91 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
92 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
93 | controlPoint2X = 19.921; | ||
94 | controlPoint2Y = 12.826; | ||
95 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
96 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
97 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
98 | pointX = 23.049; | ||
99 | pointY = 28.788; | ||
100 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
101 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
102 | controlPoint1X = 20.243; | ||
103 | controlPoint1Y = 15.448; | ||
104 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
105 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
106 | controlPoint2X = 22.589; | ||
107 | controlPoint2Y = 26.35; | ||
108 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
109 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
110 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
111 | pointX = 25.027; | ||
112 | pointY = 29.156; | ||
113 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
114 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
115 | controlPoint1X = 23.279; | ||
116 | controlPoint1Y = 29.018; | ||
117 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
118 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
119 | controlPoint2X = 24.705; | ||
120 | controlPoint2Y = 29.202; | ||
121 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
122 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
123 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
124 | pointX = 27.971; | ||
125 | pointY = 11.354; | ||
126 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
127 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
128 | controlPoint1X = 25.809; | ||
129 | controlPoint1Y = 25.384; | ||
130 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
131 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
132 | controlPoint2X = 27.971; | ||
133 | controlPoint2Y = 12.826; | ||
134 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
135 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
136 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
137 | pointX = 26.499; | ||
138 | pointY = 10.848; | ||
139 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
140 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
141 | controlPoint1X = 27.557; | ||
142 | controlPoint1Y = 11.032; | ||
143 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
144 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
145 | controlPoint2X = 26.913; | ||
146 | controlPoint2Y = 10.848; | ||
147 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
148 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
149 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
150 | pointX = 26.499; | ||
151 | pointY = 10.848; | ||
152 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
153 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
154 | context.lineTo(pointX, pointY); | ||
155 | context.closePath(); | ||
156 | pointX = 24.337; | ||
157 | pointY = 31.962; | ||
158 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
159 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
160 | context.moveTo(pointX, pointY); | ||
161 | pointX = 21.899; | ||
162 | pointY = 32.882; | ||
163 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
164 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
165 | controlPoint1X = 23.463; | ||
166 | controlPoint1Y = 31.962; | ||
167 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
168 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
169 | controlPoint2X = 22.589; | ||
170 | controlPoint2Y = 32.284; | ||
171 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
172 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
173 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
174 | pointX = 20.703; | ||
175 | pointY = 35.458; | ||
176 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
177 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
178 | controlPoint1X = 21.163; | ||
179 | controlPoint1Y = 33.572; | ||
180 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
181 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
182 | controlPoint2X = 20.703; | ||
183 | controlPoint2Y = 34.538; | ||
184 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
185 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
186 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
187 | pointX = 21.669; | ||
188 | pointY = 38.08; | ||
189 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
190 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
191 | controlPoint1X = 20.703; | ||
192 | controlPoint1Y = 36.47; | ||
193 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
194 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
195 | controlPoint2X = 20.979; | ||
196 | controlPoint2Y = 37.344; | ||
197 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
198 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
199 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
200 | pointX = 24.015; | ||
201 | pointY = 39.0; | ||
202 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
203 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
204 | controlPoint1X = 22.405; | ||
205 | controlPoint1Y = 38.77; | ||
206 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
207 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
208 | controlPoint2X = 23.325; | ||
209 | controlPoint2Y = 39.0; | ||
210 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
211 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
212 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
213 | pointX = 26.821; | ||
214 | pointY = 38.034; | ||
215 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
216 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
217 | controlPoint1X = 25.073; | ||
218 | controlPoint1Y = 39.0; | ||
219 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
220 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
221 | controlPoint2X = 26.131; | ||
222 | controlPoint2Y = 38.724; | ||
223 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
224 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
225 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
226 | pointX = 27.833; | ||
227 | pointY = 35.55; | ||
228 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
229 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
230 | controlPoint1X = 27.465; | ||
231 | controlPoint1Y = 37.344; | ||
232 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
233 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
234 | controlPoint2X = 27.833; | ||
235 | controlPoint2Y = 36.194; | ||
236 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
237 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
238 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
239 | pointX = 26.683; | ||
240 | pointY = 32.744; | ||
241 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
242 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
243 | controlPoint1X = 27.833; | ||
244 | controlPoint1Y = 34.676; | ||
245 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
246 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
247 | controlPoint2X = 27.557; | ||
248 | controlPoint2Y = 33.572; | ||
249 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
250 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
251 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
252 | pointX = 24.337; | ||
253 | pointY = 31.962; | ||
254 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
255 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
256 | controlPoint1X = 26.085; | ||
257 | controlPoint1Y = 32.238; | ||
258 | controlPoint1X = (Math.round(resolution * controlPoint1X + alignStroke) - alignStroke) / resolution; | ||
259 | controlPoint1Y = (Math.round(resolution * controlPoint1Y + alignStroke) - alignStroke) / resolution; | ||
260 | controlPoint2X = 25.211; | ||
261 | controlPoint2Y = 31.962; | ||
262 | controlPoint2X = (Math.round(resolution * controlPoint2X + alignStroke) - alignStroke) / resolution; | ||
263 | controlPoint2Y = (Math.round(resolution * controlPoint2Y + alignStroke) - alignStroke) / resolution; | ||
264 | context.bezierCurveTo(controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, pointX, pointY); | ||
265 | pointX = 24.337; | ||
266 | pointY = 31.962; | ||
267 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
268 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
269 | context.lineTo(pointX, pointY); | ||
270 | context.closePath(); | ||
271 | pointX = 30.639; | ||
272 | pointY = 38.402; | ||
273 | pointX = (Math.round(resolution * pointX + alignStroke) - alignStroke) / resolution; | ||
274 | pointY = (Math.round(resolution * pointY + alignStroke) - alignStroke) / resolution; | ||
275 | context.moveTo(pointX, pointY); | ||
276 | context.fillStyle = aColor; | ||
277 | context.fill(); | ||
278 | |||
279 | context.restore(); | ||
280 | } | ||