Best JavaScript code snippet using wpt
CoMonoFontRegular.js
Source:CoMonoFontRegular.js
...24function drawGlyph(str)25{26if(str=="A"){27 c.moveTo(12,18);28 c.bezierCurveTo(10,18,9,16,8,12);29 c.bezierCurveTo(8,11,7,8,7,4);30 c.bezierCurveTo(5,4,-5,5,-5,5);31 c.bezierCurveTo(-5,7,-8,12,-9,16);32 c.bezierCurveTo(-10,17,-10,18,-11,18);33 c.bezierCurveTo(-12,18,-12,17,-13,17);34 c.bezierCurveTo(-13,16,-14,16,-14,15);35 c.bezierCurveTo(-14,14,-5,-5,-2,-10);36 c.bezierCurveTo(2,-16,4,-19,5,-19);37 c.bezierCurveTo(6,-19,7,-18,7,-16);38 c.lineTo(9,-8);39 c.lineTo(12,9);40 c.lineTo(13,13);41 c.bezierCurveTo(14,14,14,15,14,15);42 c.bezierCurveTo(14,16,14,17,13,17);43 c.bezierCurveTo(13,18,12,18,12,18);44 c.lineTo(12,18);45 c.moveTo(4,-10);46 c.lineTo(-2,-0);47 c.bezierCurveTo(0,-1,2,0,5,-1);48 c.lineTo(4,-10);49 c.lineTo(4,-10);50}else if(str=="B"){51 c.beginPath();52 c.moveTo(5,16);53 c.bezierCurveTo(1,17,-4,18,-10,18);54 c.bezierCurveTo(-11,18,-12,17,-12,17);55 c.bezierCurveTo(-13,16,-13,16,-13,15);56 c.lineTo(-13,8);57 c.bezierCurveTo(-13,6,-13,-9,-13,-11);58 c.bezierCurveTo(-13,-12,-13,-14,-13,-16);59 c.bezierCurveTo(-13,-17,-12,-18,-12,-18);60 c.bezierCurveTo(-9,-19,-6,-19,-3,-19);61 c.bezierCurveTo(0,-19,3,-19,6,-17);62 c.bezierCurveTo(9,-15,11,-12,11,-9);63 c.bezierCurveTo(11,-5,10,-1,5,-1);64 c.bezierCurveTo(9,-1,11,2,12,3);65 c.bezierCurveTo(13,5,14,6,14,8);66 c.bezierCurveTo(14,9,12,11,10,13);67 c.bezierCurveTo(9,14,7,15,5,16);68 c.lineTo(5,16);69 c.moveTo(1,1);70 c.bezierCurveTo(-2,0,-7,0,-8,0);71 c.bezierCurveTo(-9,2,-9,7,-9,8);72 c.lineTo(-9,13);73 c.bezierCurveTo(-4,13,1,12,4,11);74 c.bezierCurveTo(5,11,7,10,8,9);75 c.bezierCurveTo(9,9,9,8,9,8);76 c.bezierCurveTo(9,7,8,5,6,4);77 c.bezierCurveTo(4,2,3,2,1,1);78 c.lineTo(1,1);79 c.moveTo(-2,-15);80 c.bezierCurveTo(-4,-15,-8,-14,-9,-14);81 c.lineTo(-9,-11);82 c.lineTo(-8,-4);83 c.bezierCurveTo(-5,-3,-2,-4,-2,-4);84 c.bezierCurveTo(1,-4,3,-4,5,-5);85 c.bezierCurveTo(7,-7,7,-7,7,-9);86 c.bezierCurveTo(7,-10,6,-12,4,-13);87 c.bezierCurveTo(2,-14,-0,-15,-2,-15);88 c.lineTo(-2,-15);89}else if(str=="C"){90 c.moveTo(12,-10);91 c.bezierCurveTo(11,-10,10,-11,10,-12);92 c.bezierCurveTo(9,-13,8,-14,8,-15);93 c.bezierCurveTo(8,-15,7,-15,5,-15);94 c.bezierCurveTo(3,-15,-0,-12,-3,-9);95 c.bezierCurveTo(-7,-4,-9,1,-9,5);96 c.bezierCurveTo(-9,7,-8,10,-6,11);97 c.bezierCurveTo(-5,13,-3,14,-1,14);98 c.bezierCurveTo(0,14,3,13,4,12);99 c.bezierCurveTo(5,11,7,10,9,9);100 c.bezierCurveTo(10,8,10,8,10,8);101 c.bezierCurveTo(11,8,11,8,12,9);102 c.bezierCurveTo(12,9,12,10,12,11);103 c.bezierCurveTo(12,11,12,12,12,13);104 c.bezierCurveTo(7,16,3,18,-1,18);105 c.bezierCurveTo(-5,18,-8,17,-10,14);106 c.bezierCurveTo(-12,12,-13,9,-13,5);107 c.bezierCurveTo(-13,-0,-11,-6,-6,-12);108 c.bezierCurveTo(-3,-17,1,-19,5,-19);109 c.bezierCurveTo(6,-19,7,-19,7,-19);110 c.bezierCurveTo(12,-19,14,-15,14,-13);111 c.bezierCurveTo(14,-12,13,-11,13,-11);112 c.bezierCurveTo(13,-10,12,-10,12,-10);113 c.lineTo(12,-10);114}else if(str=="D"){115 c.moveTo(7,16);116 c.bezierCurveTo(5,17,1,18,-3,18);117 c.bezierCurveTo(-4,18,-6,18,-7,18);118 c.bezierCurveTo(-9,17,-10,17,-11,16);119 c.lineTo(-11,16);120 c.bezierCurveTo(-12,16,-12,16,-13,15);121 c.bezierCurveTo(-13,15,-13,14,-13,14);122 c.bezierCurveTo(-13,12,-13,10,-13,6);123 c.bezierCurveTo(-13,3,-13,1,-13,-1);124 c.bezierCurveTo(-13,-3,-13,-5,-13,-9);125 c.bezierCurveTo(-13,-12,-13,-14,-13,-16);126 c.bezierCurveTo(-13,-17,-13,-17,-12,-18);127 c.bezierCurveTo(-12,-19,-11,-19,-10,-19);128 c.bezierCurveTo(-2,-20,6,-14,9,-11);129 c.bezierCurveTo(12,-8,14,-2,14,2);130 c.bezierCurveTo(14,5,13,8,12,10);131 c.bezierCurveTo(11,12,9,14,7,16);132 c.lineTo(7,16);133 c.moveTo(2,-10);134 c.bezierCurveTo(-1,-13,-3,-14,-9,-14);135 c.lineTo(-9,-7);136 c.lineTo(-8,-1);137 c.lineTo(-9,12);138 c.bezierCurveTo(-9,12,-9,12,-8,12);139 c.bezierCurveTo(-7,13,-5,14,-3,14);140 c.bezierCurveTo(0,14,3,13,4,12);141 c.bezierCurveTo(6,11,7,10,8,8);142 c.bezierCurveTo(9,6,9,4,9,3);143 c.bezierCurveTo(9,-2,7,-7,2,-10);144 c.lineTo(2,-10);145}else if(str=="E"){146 c.moveTo(11,-13);147 c.bezierCurveTo(11,-13,11,-13,10,-14);148 c.bezierCurveTo(7,-14,5,-15,2,-15);149 c.bezierCurveTo(1,-15,-5,-14,-7,-13);150 c.bezierCurveTo(-7,-13,-8,-11,-8,-11);151 c.bezierCurveTo(-8,-9,-8,-6,-8,-3);152 c.lineTo(-2,-3);153 c.bezierCurveTo(2,-3,3,-3,4,-3);154 c.bezierCurveTo(5,-3,5,-3,6,-3);155 c.bezierCurveTo(6,-2,7,-2,7,-1);156 c.bezierCurveTo(7,0,6,1,4,1);157 c.lineTo(-2,2);158 c.lineTo(-8,2);159 c.bezierCurveTo(-8,3,-8,4,-8,5);160 c.bezierCurveTo(-8,6,-9,8,-9,8);161 c.bezierCurveTo(-9,12,-8,12,-7,13);162 c.bezierCurveTo(-7,13,-6,14,-4,14);163 c.bezierCurveTo(-3,14,-1,14,1,13);164 c.bezierCurveTo(3,13,5,13,6,13);165 c.bezierCurveTo(6,13,7,13,7,13);166 c.bezierCurveTo(8,13,8,13,9,13);167 c.bezierCurveTo(10,13,11,14,11,15);168 c.bezierCurveTo(11,16,11,17,9,17);169 c.bezierCurveTo(8,18,4,18,-1,18);170 c.bezierCurveTo(-6,18,-9,17,-11,16);171 c.bezierCurveTo(-12,15,-13,12,-13,7);172 c.bezierCurveTo(-13,6,-13,5,-13,4);173 c.bezierCurveTo(-13,3,-13,-15,-13,-16);174 c.bezierCurveTo(-12,-19,1,-19,2,-19);175 c.bezierCurveTo(6,-19,9,-19,12,-18);176 c.bezierCurveTo(13,-17,13,-17,13,-16);177 c.bezierCurveTo(13,-15,13,-15,13,-14);178 c.bezierCurveTo(12,-14,12,-13,11,-13);179 c.lineTo(11,-13);180}else if(str=="F"){181 c.moveTo(12,-18);182 c.bezierCurveTo(9,-19,6,-19,2,-19);183 c.bezierCurveTo(1,-19,-12,-19,-13,-16);184 c.bezierCurveTo(-13,-15,-13,13,-13,15);185 c.bezierCurveTo(-13,16,-13,16,-12,17);186 c.bezierCurveTo(-12,17,-11,17,-11,17);187 c.bezierCurveTo(-10,17,-9,17,-9,17);188 c.bezierCurveTo(-8,16,-8,16,-8,15);189 c.bezierCurveTo(-8,15,-8,2,-8,2);190 c.lineTo(-2,1);191 c.lineTo(5,1);192 c.bezierCurveTo(6,1,7,0,7,-1);193 c.bezierCurveTo(7,-2,7,-2,6,-3);194 c.bezierCurveTo(6,-3,5,-4,4,-4);195 c.bezierCurveTo(3,-4,2,-3,-2,-3);196 c.lineTo(-8,-3);197 c.bezierCurveTo(-8,-6,-8,-9,-8,-11);198 c.bezierCurveTo(-8,-12,-8,-13,-7,-13);199 c.bezierCurveTo(-6,-15,1,-15,2,-15);200 c.bezierCurveTo(5,-15,7,-14,10,-14);201 c.bezierCurveTo(10,-13,11,-13,11,-13);202 c.bezierCurveTo(12,-13,12,-14,13,-14);203 c.bezierCurveTo(13,-15,13,-15,13,-16);204 c.bezierCurveTo(13,-17,13,-17,12,-18);205 c.lineTo(12,-18);206}else if(str=="G"){207 c.moveTo(8,14);208 c.bezierCurveTo(5,17,2,18,-2,18);209 c.bezierCurveTo(-6,18,-9,17,-10,15);210 c.bezierCurveTo(-12,13,-13,10,-13,6);211 c.bezierCurveTo(-13,2,-12,-2,-11,-7);212 c.bezierCurveTo(-9,-11,-7,-14,-4,-17);213 c.bezierCurveTo(-2,-18,0,-19,2,-19);214 c.bezierCurveTo(3,-19,5,-19,7,-18);215 c.bezierCurveTo(10,-17,11,-16,11,-14);216 c.bezierCurveTo(11,-14,11,-13,11,-13);217 c.bezierCurveTo(10,-12,10,-12,9,-12);218 c.bezierCurveTo(9,-12,8,-12,8,-13);219 c.bezierCurveTo(6,-14,4,-15,2,-15);220 c.bezierCurveTo(1,-15,0,-14,-1,-13);221 c.bezierCurveTo(-2,-12,-3,-11,-4,-10);222 c.bezierCurveTo(-7,-5,-9,0,-9,6);223 c.bezierCurveTo(-9,8,-8,10,-7,12);224 c.bezierCurveTo(-7,13,-5,13,-2,13);225 c.bezierCurveTo(0,13,2,13,4,11);226 c.bezierCurveTo(6,9,8,5,9,2);227 c.bezierCurveTo(5,2,2,2,-1,2);228 c.bezierCurveTo(-2,2,-2,2,-2,2);229 c.bezierCurveTo(-3,2,-3,1,-4,1);230 c.bezierCurveTo(-4,0,-4,-1,-4,-1);231 c.bezierCurveTo(-3,-2,-3,-3,-2,-3);232 c.bezierCurveTo(2,-3,4,-3,12,-3);233 c.bezierCurveTo(12,-3,14,-3,14,-2);234 c.bezierCurveTo(14,1,11,11,8,14);235 c.lineTo(8,14);236}else if(str=="H"){237 c.moveTo(13,10);238 c.bezierCurveTo(14,13,14,14,14,15);239 c.bezierCurveTo(14,16,13,17,13,17);240 c.bezierCurveTo(13,17,12,18,12,18);241 c.bezierCurveTo(11,18,10,17,10,17);242 c.bezierCurveTo(9,17,9,16,9,15);243 c.bezierCurveTo(9,14,9,13,9,10);244 c.bezierCurveTo(9,8,9,6,9,5);245 c.bezierCurveTo(9,4,9,2,9,1);246 c.bezierCurveTo(6,1,5,1,1,2);247 c.lineTo(-8,2);248 c.bezierCurveTo(-8,3,-8,8,-8,11);249 c.bezierCurveTo(-9,13,-9,15,-9,16);250 c.bezierCurveTo(-9,17,-9,18,-9,18);251 c.bezierCurveTo(-10,18,-10,19,-11,19);252 c.bezierCurveTo(-12,19,-12,18,-12,18);253 c.bezierCurveTo(-13,18,-13,17,-13,16);254 c.bezierCurveTo(-13,15,-13,12,-13,9);255 c.bezierCurveTo(-12,6,-12,-15,-12,-17);256 c.bezierCurveTo(-12,-17,-12,-18,-11,-18);257 c.bezierCurveTo(-11,-19,-10,-19,-10,-19);258 c.bezierCurveTo(-8,-19,-7,-18,-7,-17);259 c.bezierCurveTo(-7,-16,-8,-3,-8,-3);260 c.lineTo(2,-3);261 c.bezierCurveTo(6,-3,7,-4,9,-4);262 c.bezierCurveTo(9,-6,9,-8,9,-13);263 c.bezierCurveTo(9,-14,9,-15,9,-16);264 c.bezierCurveTo(9,-18,11,-19,12,-19);265 c.bezierCurveTo(12,-19,13,-19,14,-18);266 c.bezierCurveTo(14,-17,14,-17,14,-17);267 c.bezierCurveTo(14,-16,13,8,13,10);268 c.lineTo(13,10);269}else if(str=="I"){270 c.moveTo(12,-13);271 c.bezierCurveTo(10,-13,9,-13,7,-13);272 c.lineTo(3,-14);273 c.bezierCurveTo(2,-9,2,-5,2,-0);274 c.bezierCurveTo(2,1,2,7,2,8);275 c.bezierCurveTo(2,10,2,12,2,13);276 c.lineTo(11,13);277 c.bezierCurveTo(12,13,12,13,13,14);278 c.bezierCurveTo(13,14,14,15,14,15);279 c.bezierCurveTo(14,16,13,17,13,17);280 c.bezierCurveTo(12,18,12,18,11,18);281 c.bezierCurveTo(10,18,8,18,6,18);282 c.bezierCurveTo(4,18,3,18,1,18);283 c.bezierCurveTo(0,18,-8,18,-10,18);284 c.bezierCurveTo(-10,18,-11,18,-12,18);285 c.bezierCurveTo(-12,17,-12,16,-12,16);286 c.bezierCurveTo(-12,15,-12,14,-12,14);287 c.bezierCurveTo(-11,13,-10,13,-10,13);288 c.bezierCurveTo(-8,13,-6,13,-4,13);289 c.bezierCurveTo(-3,11,-4,1,-4,0);290 c.bezierCurveTo(-4,-4,-3,-8,-3,-14);291 c.lineTo(-7,-14);292 c.lineTo(-10,-14);293 c.bezierCurveTo(-11,-14,-12,-14,-12,-14);294 c.bezierCurveTo(-13,-15,-13,-16,-13,-16);295 c.bezierCurveTo(-13,-18,-12,-19,-10,-19);296 c.bezierCurveTo(-9,-19,-6,-19,-2,-19);297 c.bezierCurveTo(2,-19,6,-19,12,-18);298 c.bezierCurveTo(14,-18,14,-17,14,-15);299 c.bezierCurveTo(14,-15,14,-14,14,-14);300 c.bezierCurveTo(13,-13,12,-13,12,-13);301 c.lineTo(12,-13);302}else if(str=="J"){303 c.moveTo(12,-14);304 c.bezierCurveTo(12,-14,7,-15,6,-15);305 c.lineTo(6,-12);306 c.bezierCurveTo(6,-0,6,8,4,13);307 c.bezierCurveTo(3,17,1,18,-1,18);308 c.bezierCurveTo(-4,18,-7,17,-9,16);309 c.bezierCurveTo(-12,13,-14,11,-14,8);310 c.bezierCurveTo(-14,6,-13,5,-11,5);311 c.bezierCurveTo(-9,6,-9,6,-9,8);312 c.bezierCurveTo(-9,9,-8,11,-6,12);313 c.bezierCurveTo(-4,13,-3,14,-1,14);314 c.bezierCurveTo(0,14,1,10,2,2);315 c.bezierCurveTo(2,-2,2,-6,2,-12);316 c.bezierCurveTo(2,-12,2,-13,2,-14);317 c.bezierCurveTo(2,-14,-5,-14,-5,-14);318 c.bezierCurveTo(-6,-14,-7,-15,-7,-15);319 c.bezierCurveTo(-7,-15,-8,-16,-8,-17);320 c.bezierCurveTo(-8,-18,-7,-19,-4,-19);321 c.bezierCurveTo(-4,-19,-3,-19,-2,-19);322 c.bezierCurveTo(-1,-19,-0,-19,0,-19);323 c.bezierCurveTo(1,-19,3,-19,5,-19);324 c.bezierCurveTo(7,-19,8,-19,9,-19);325 c.bezierCurveTo(13,-19,14,-19,14,-17);326 c.bezierCurveTo(14,-16,14,-16,14,-15);327 c.bezierCurveTo(13,-15,13,-14,12,-14);328 c.lineTo(12,-14);329}else if(str=="K"){330 c.moveTo(11,17);331 c.bezierCurveTo(9,17,5,14,0,10);332 c.lineTo(-8,3);333 c.lineTo(-8,3);334 c.lineTo(-8,16);335 c.bezierCurveTo(-8,18,-8,19,-10,19);336 c.bezierCurveTo(-11,19,-12,18,-12,18);337 c.bezierCurveTo(-13,17,-13,16,-13,16);338 c.bezierCurveTo(-13,12,-12,-13,-12,-17);339 c.bezierCurveTo(-12,-17,-12,-18,-11,-18);340 c.bezierCurveTo(-11,-19,-10,-19,-10,-19);341 c.bezierCurveTo(-9,-19,-8,-19,-8,-18);342 c.bezierCurveTo(-7,-18,-7,-17,-7,-17);343 c.bezierCurveTo(-7,-15,-8,-6,-8,-4);344 c.bezierCurveTo(-5,-6,-0,-8,3,-11);345 c.lineTo(9,-16);346 c.bezierCurveTo(10,-17,11,-17,11,-17);347 c.bezierCurveTo(12,-17,13,-17,13,-16);348 c.bezierCurveTo(14,-16,14,-15,14,-15);349 c.bezierCurveTo(14,-14,11,-11,6,-7);350 c.bezierCurveTo(3,-5,-1,-4,-4,-1);351 c.bezierCurveTo(-2,1,1,4,6,8);352 c.bezierCurveTo(6,8,10,12,11,12);353 c.bezierCurveTo(13,13,13,14,13,15);354 c.bezierCurveTo(13,15,13,16,13,16);355 c.bezierCurveTo(13,17,12,17,11,17);356 c.lineTo(11,17);357}else if(str=="L"){358 c.moveTo(12,18);359 c.bezierCurveTo(10,18,-5,18,-8,18);360 c.bezierCurveTo(-10,18,-11,18,-12,17);361 c.bezierCurveTo(-13,17,-14,16,-14,14);362 c.bezierCurveTo(-14,14,-13,-8,-13,-17);363 c.bezierCurveTo(-13,-17,-12,-18,-12,-18);364 c.bezierCurveTo(-11,-19,-11,-19,-10,-19);365 c.bezierCurveTo(-9,-19,-8,-19,-8,-18);366 c.bezierCurveTo(-7,-17,-7,-17,-7,-17);367 c.bezierCurveTo(-7,-8,-8,13,-8,14);368 c.bezierCurveTo(-3,14,2,14,10,13);369 c.bezierCurveTo(11,13,11,13,11,13);370 c.bezierCurveTo(12,13,13,14,13,14);371 c.bezierCurveTo(14,15,14,15,14,16);372 c.bezierCurveTo(14,16,14,17,12,18);373 c.lineTo(12,18);374}else if(str=="M"){375 c.moveTo(12,18);376 c.bezierCurveTo(11,18,10,18,10,17);377 c.bezierCurveTo(10,16,10,15,9,14);378 c.lineTo(9,10);379 c.bezierCurveTo(8,7,8,5,7,-4);380 c.lineTo(4,8);381 c.lineTo(3,12);382 c.bezierCurveTo(3,13,2,15,2,16);383 c.bezierCurveTo(1,17,1,18,-0,18);384 c.bezierCurveTo(-1,18,-2,17,-3,16);385 c.bezierCurveTo(-3,16,-3,15,-4,14);386 c.lineTo(-4,11);387 c.bezierCurveTo(-5,6,-5,2,-6,-4);388 c.lineTo(-7,1);389 c.lineTo(-8,10);390 c.bezierCurveTo(-8,12,-8,14,-9,17);391 c.bezierCurveTo(-9,18,-10,18,-11,18);392 c.bezierCurveTo(-12,18,-12,18,-12,17);393 c.bezierCurveTo(-13,17,-13,16,-13,15);394 c.bezierCurveTo(-13,13,-12,10,-12,6);395 c.lineTo(-11,-4);396 c.lineTo(-10,-11);397 c.bezierCurveTo(-9,-14,-9,-17,-8,-18);398 c.bezierCurveTo(-8,-19,-7,-19,-6,-19);399 c.bezierCurveTo(-6,-19,-4,-18,-4,-17);400 c.bezierCurveTo(-4,-16,-3,-13,-2,-8);401 c.bezierCurveTo(-2,-3,-1,-0,0,6);402 c.bezierCurveTo(2,-0,3,-4,4,-11);403 c.lineTo(4,-14);404 c.bezierCurveTo(5,-15,5,-17,5,-17);405 c.bezierCurveTo(5,-19,7,-19,7,-19);406 c.bezierCurveTo(8,-19,9,-18,10,-15);407 c.bezierCurveTo(10,-14,11,-10,11,-7);408 c.bezierCurveTo(12,0,12,3,13,8);409 c.lineTo(14,12);410 c.bezierCurveTo(14,14,14,16,14,16);411 c.bezierCurveTo(14,17,14,17,14,18);412 c.bezierCurveTo(12,18,12,18,12,18);413 c.lineTo(12,18);414}else if(str=="N"){415 c.moveTo(13,12);416 c.bezierCurveTo(13,13,13,14,13,15);417 c.bezierCurveTo(13,17,12,18,10,18);418 c.bezierCurveTo(10,18,9,17,7,16);419 c.bezierCurveTo(1,10,-1,2,-7,-10);420 c.lineTo(-8,-5);421 c.bezierCurveTo(-8,-5,-7,11,-7,12);422 c.bezierCurveTo(-7,16,-8,18,-10,18);423 c.bezierCurveTo(-11,18,-12,18,-12,17);424 c.bezierCurveTo(-13,17,-13,16,-13,15);425 c.bezierCurveTo(-13,13,-12,-15,-12,-16);426 c.bezierCurveTo(-12,-17,-12,-18,-11,-18);427 c.bezierCurveTo(-11,-19,-10,-19,-9,-19);428 c.bezierCurveTo(-8,-19,-7,-18,-6,-16);429 c.bezierCurveTo(-2,-11,0,-6,3,-2);430 c.bezierCurveTo(6,4,5,3,9,10);431 c.bezierCurveTo(9,9,9,-9,9,-11);432 c.bezierCurveTo(9,-12,9,-15,9,-16);433 c.bezierCurveTo(9,-18,10,-19,11,-19);434 c.bezierCurveTo(14,-19,13,-14,13,-4);435 c.bezierCurveTo(13,-2,13,0,13,4);436 c.bezierCurveTo(13,7,13,10,13,12);437 c.lineTo(13,12);438}else if(str=="O"){439 c.moveTo(-0,18);440 c.bezierCurveTo(-4,18,-7,17,-9,14);441 c.bezierCurveTo(-12,11,-13,8,-13,3);442 c.bezierCurveTo(-13,-2,-12,-7,-9,-12);443 c.bezierCurveTo(-7,-17,-3,-19,1,-19);444 c.bezierCurveTo(5,-19,8,-18,10,-16);445 c.bezierCurveTo(12,-13,13,-9,13,-4);446 c.bezierCurveTo(13,1,12,6,10,11);447 c.bezierCurveTo(7,16,4,18,-0,18);448 c.lineTo(-0,18);449 c.moveTo(1,-14);450 c.bezierCurveTo(-2,-14,-4,-12,-6,-8);451 c.bezierCurveTo(-8,-5,-9,-1,-9,3);452 c.bezierCurveTo(-9,6,-9,8,-7,10);453 c.bezierCurveTo(-5,12,-3,13,-0,13);454 c.bezierCurveTo(3,13,4,11,6,8);455 c.bezierCurveTo(8,4,9,0,9,-4);456 c.bezierCurveTo(9,-8,8,-11,7,-12);457 c.bezierCurveTo(6,-14,4,-14,1,-14);458 c.lineTo(1,-14);459}else if(str=="P"){460 c.moveTo(-4,2);461 c.bezierCurveTo(-5,2,-6,2,-8,2);462 c.bezierCurveTo(-8,4,-8,10,-8,16);463 c.bezierCurveTo(-8,17,-9,17,-9,18);464 c.bezierCurveTo(-10,18,-10,18,-11,18);465 c.bezierCurveTo(-12,18,-12,18,-13,18);466 c.bezierCurveTo(-13,17,-14,17,-14,16);467 c.lineTo(-14,9);468 c.bezierCurveTo(-14,7,-14,4,-13,-1);469 c.bezierCurveTo(-13,-5,-13,-8,-13,-10);470 c.lineTo(-13,-13);471 c.bezierCurveTo(-13,-14,-13,-15,-13,-16);472 c.bezierCurveTo(-12,-17,-11,-18,-9,-18);473 c.bezierCurveTo(-9,-18,-7,-19,-6,-19);474 c.bezierCurveTo(-5,-19,-4,-19,-2,-19);475 c.bezierCurveTo(1,-19,5,-18,8,-16);476 c.bezierCurveTo(11,-14,13,-11,13,-8);477 c.bezierCurveTo(13,-5,11,-1,7,1);478 c.bezierCurveTo(4,3,0,2,-4,2);479 c.lineTo(-4,2);480 c.moveTo(-3,-14);481 c.bezierCurveTo(-4,-14,-4,-14,-5,-14);482 c.bezierCurveTo(-6,-14,-7,-14,-8,-14);483 c.lineTo(-8,-10);484 c.lineTo(-8,-3);485 c.lineTo(-4,-3);486 c.bezierCurveTo(-1,-2,3,-2,5,-4);487 c.bezierCurveTo(6,-4,8,-6,8,-8);488 c.bezierCurveTo(8,-10,7,-12,4,-13);489 c.bezierCurveTo(2,-14,-0,-14,-3,-14);490 c.lineTo(-3,-14);491}else if(str=="Q"){492 c.moveTo(9,12);493 c.bezierCurveTo(9,12,9,11,10,11);494 c.bezierCurveTo(12,6,13,1,13,-4);495 c.bezierCurveTo(13,-9,12,-13,10,-15);496 c.bezierCurveTo(8,-18,5,-19,1,-19);497 c.bezierCurveTo(-3,-19,-7,-16,-10,-12);498 c.bezierCurveTo(-12,-7,-14,-2,-14,3);499 c.bezierCurveTo(-14,8,-12,11,-10,14);500 c.bezierCurveTo(-7,17,-4,18,-1,18);501 c.bezierCurveTo(2,18,4,17,6,16);502 c.bezierCurveTo(7,17,9,18,9,18);503 c.bezierCurveTo(10,18,10,18,11,17);504 c.bezierCurveTo(11,17,11,16,11,16);505 c.bezierCurveTo(11,15,11,14,10,14);506 c.bezierCurveTo(10,14,10,13,9,12);507 c.lineTo(9,12);508 c.moveTo(-7,10);509 c.bezierCurveTo(-9,8,-9,6,-9,3);510 c.bezierCurveTo(-9,-1,-8,-5,-6,-8);511 c.bezierCurveTo(-4,-12,-2,-14,1,-14);512 c.bezierCurveTo(4,-14,5,-14,7,-12);513 c.bezierCurveTo(8,-11,9,-8,9,-4);514 c.bezierCurveTo(9,0,8,4,6,8);515 c.bezierCurveTo(6,8,6,9,5,9);516 c.bezierCurveTo(5,9,5,9,5,9);517 c.bezierCurveTo(4,8,4,8,3,8);518 c.bezierCurveTo(2,8,2,8,1,8);519 c.bezierCurveTo(1,9,1,9,1,10);520 c.bezierCurveTo(1,11,1,11,2,13);521 c.bezierCurveTo(1,13,0,13,-1,13);522 c.bezierCurveTo(-3,13,-5,12,-7,10);523 c.lineTo(-7,10);524}else if(str=="R"){525 c.moveTo(11,18);526 c.bezierCurveTo(10,18,10,17,9,17);527 c.bezierCurveTo(4,12,-3,3,-8,3);528 c.lineTo(-8,16);529 c.bezierCurveTo(-8,17,-8,17,-9,18);530 c.bezierCurveTo(-9,18,-10,18,-10,18);531 c.bezierCurveTo(-12,18,-12,18,-12,18);532 c.bezierCurveTo(-13,17,-13,17,-13,16);533 c.bezierCurveTo(-13,11,-13,-16,-13,-12);534 c.bezierCurveTo(-13,-13,-12,-16,-12,-17);535 c.bezierCurveTo(-11,-18,-9,-19,-8,-19);536 c.lineTo(-4,-19);537 c.bezierCurveTo(-2,-19,0,-19,2,-18);538 c.bezierCurveTo(8,-17,13,-13,13,-8);539 c.bezierCurveTo(13,-4,11,-2,9,-0);540 c.bezierCurveTo(7,2,4,2,1,3);541 c.bezierCurveTo(3,3,10,11,13,14);542 c.bezierCurveTo(13,14,13,15,13,15);543 c.bezierCurveTo(13,16,13,17,12,17);544 c.bezierCurveTo(12,17,11,18,11,18);545 c.lineTo(11,18);546 c.moveTo(-4,-14);547 c.lineTo(-7,-14);548 c.lineTo(-8,-11);549 c.bezierCurveTo(-7,-10,-7,-9,-8,-7);550 c.lineTo(-8,-3);551 c.bezierCurveTo(-8,-3,-6,-3,-6,-3);552 c.bezierCurveTo(-5,-3,-4,-3,-4,-3);553 c.bezierCurveTo(-0,-3,2,-2,4,-3);554 c.bezierCurveTo(5,-4,6,-4,6,-5);555 c.bezierCurveTo(7,-6,8,-7,8,-9);556 c.bezierCurveTo(8,-11,6,-11,5,-13);557 c.bezierCurveTo(3,-14,-2,-15,-4,-14);558 c.lineTo(-4,-14);559}else if(str=="S"){560 c.moveTo(-14,11);561 c.bezierCurveTo(-14,10,-13,9,-13,9);562 c.bezierCurveTo(-12,9,-12,8,-11,8);563 c.bezierCurveTo(-10,8,-10,9,-9,10);564 c.bezierCurveTo(-8,11,-8,12,-7,12);565 c.bezierCurveTo(-6,13,-4,14,-1,14);566 c.bezierCurveTo(1,14,3,13,5,12);567 c.bezierCurveTo(8,11,9,9,9,6);568 c.bezierCurveTo(9,4,8,3,6,1);569 c.bezierCurveTo(4,0,2,-0,-1,-0);570 c.bezierCurveTo(-4,-0,-6,-1,-7,-2);571 c.bezierCurveTo(-10,-3,-11,-5,-11,-8);572 c.bezierCurveTo(-11,-11,-9,-13,-6,-16);573 c.bezierCurveTo(-3,-18,0,-19,3,-19);574 c.bezierCurveTo(5,-19,6,-19,8,-18);575 c.bezierCurveTo(11,-17,12,-17,12,-15);576 c.bezierCurveTo(12,-14,11,-13,10,-13);577 c.bezierCurveTo(9,-13,8,-14,7,-14);578 c.bezierCurveTo(5,-14,4,-14,3,-14);579 c.bezierCurveTo(1,-14,-1,-14,-3,-12);580 c.bezierCurveTo(-5,-11,-6,-10,-6,-8);581 c.bezierCurveTo(-6,-7,-5,-6,-2,-5);582 c.bezierCurveTo(-2,-5,0,-5,3,-5);583 c.bezierCurveTo(6,-4,9,-3,11,-1);584 c.bezierCurveTo(13,1,14,3,14,6);585 c.bezierCurveTo(14,10,12,13,9,15);586 c.bezierCurveTo(6,17,2,18,-2,18);587 c.bezierCurveTo(-4,18,-7,18,-9,16);588 c.bezierCurveTo(-12,15,-14,13,-14,11);589 c.lineTo(-14,11);590}else if(str=="T"){591 c.moveTo(12,-14);592 c.bezierCurveTo(11,-14,9,-14,7,-14);593 c.bezierCurveTo(5,-14,4,-14,3,-14);594 c.lineTo(2,-14);595 c.bezierCurveTo(2,-12,2,-6,2,-2);596 c.bezierCurveTo(3,3,2,16,2,17);597 c.bezierCurveTo(1,18,0,18,-1,18);598 c.bezierCurveTo(-1,18,-2,18,-3,17);599 c.bezierCurveTo(-3,17,-4,16,-4,16);600 c.bezierCurveTo(-4,15,-3,1,-3,-3);601 c.bezierCurveTo(-4,-7,-4,-12,-4,-14);602 c.lineTo(-5,-14);603 c.bezierCurveTo(-8,-14,-10,-13,-12,-13);604 c.bezierCurveTo(-13,-14,-14,-14,-14,-15);605 c.bezierCurveTo(-14,-16,-13,-16,-13,-17);606 c.bezierCurveTo(-13,-17,-12,-18,-11,-18);607 c.bezierCurveTo(-11,-18,-3,-19,-1,-19);608 c.bezierCurveTo(0,-19,2,-19,2,-19);609 c.bezierCurveTo(3,-19,11,-18,12,-18);610 c.bezierCurveTo(12,-18,13,-18,13,-18);611 c.bezierCurveTo(14,-17,14,-17,14,-16);612 c.bezierCurveTo(14,-15,14,-15,13,-14);613 c.bezierCurveTo(13,-14,12,-14,12,-14);614 c.lineTo(12,-14);615}else if(str=="U"){616 c.moveTo(1,18);617 c.bezierCurveTo(-4,18,-8,17,-10,14);618 c.bezierCurveTo(-12,12,-13,8,-13,4);619 c.bezierCurveTo(-13,2,-13,-12,-13,-14);620 c.bezierCurveTo(-13,-15,-13,-16,-13,-17);621 c.bezierCurveTo(-13,-18,-12,-18,-11,-18);622 c.bezierCurveTo(-10,-18,-8,-17,-8,-14);623 c.lineTo(-8,-0);624 c.bezierCurveTo(-8,9,-6,13,0,13);625 c.bezierCurveTo(6,13,9,6,9,-10);626 c.bezierCurveTo(9,-11,9,-16,9,-17);627 c.bezierCurveTo(9,-18,11,-19,12,-19);628 c.bezierCurveTo(13,-19,14,-17,14,-15);629 c.bezierCurveTo(14,-15,14,-10,14,-9);630 c.bezierCurveTo(14,9,9,18,1,18);631 c.lineTo(1,18);632}else if(str=="V"){633 c.moveTo(13,-15);634 c.bezierCurveTo(12,-13,11,-12,11,-10);635 c.lineTo(9,-5);636 c.lineTo(3,11);637 c.bezierCurveTo(2,13,1,15,0,17);638 c.bezierCurveTo(-0,18,-1,18,-2,18);639 c.bezierCurveTo(-3,18,-4,18,-4,17);640 c.bezierCurveTo(-6,12,-8,5,-10,-3);641 c.lineTo(-12,-10);642 c.bezierCurveTo(-13,-13,-13,-15,-13,-16);643 c.bezierCurveTo(-13,-17,-13,-17,-12,-18);644 c.bezierCurveTo(-12,-18,-11,-18,-11,-18);645 c.bezierCurveTo(-10,-18,-9,-18,-9,-16);646 c.lineTo(-8,-12);647 c.lineTo(-6,-5);648 c.bezierCurveTo(-4,1,-3,6,-1,10);649 c.lineTo(-1,10);650 c.lineTo(5,-7);651 c.lineTo(7,-13);652 c.bezierCurveTo(7,-15,8,-17,9,-18);653 c.bezierCurveTo(10,-18,10,-19,11,-19);654 c.bezierCurveTo(12,-19,12,-18,13,-18);655 c.bezierCurveTo(13,-17,13,-17,13,-16);656 c.bezierCurveTo(13,-16,13,-15,13,-15);657 c.lineTo(13,-15);658}else if(str=="W"){659 c.moveTo(-11,-19);660 c.bezierCurveTo(-11,-19,-10,-19,-9,-18);661 c.bezierCurveTo(-9,-17,-9,-16,-9,-14);662 c.lineTo(-8,-10);663 c.bezierCurveTo(-8,-8,-8,-6,-7,3);664 c.lineTo(-4,-8);665 c.bezierCurveTo(-4,-8,-2,-14,-2,-15);666 c.bezierCurveTo(-1,-16,-1,-17,0,-17);667 c.bezierCurveTo(1,-17,2,-17,3,-15);668 c.bezierCurveTo(3,-15,4,-11,4,-11);669 c.bezierCurveTo(5,-6,6,-4,7,2);670 c.lineTo(7,-2);671 c.lineTo(8,-11);672 c.bezierCurveTo(9,-12,9,-15,9,-17);673 c.bezierCurveTo(9,-19,11,-19,12,-19);674 c.bezierCurveTo(12,-19,13,-18,13,-18);675 c.bezierCurveTo(13,-17,13,-17,13,-16);676 c.bezierCurveTo(13,-14,13,-10,12,-7);677 c.lineTo(11,3);678 c.lineTo(10,10);679 c.bezierCurveTo(10,14,10,16,9,17);680 c.bezierCurveTo(9,18,8,19,7,19);681 c.bezierCurveTo(6,19,5,18,5,17);682 c.bezierCurveTo(4,15,3,12,3,8);683 c.bezierCurveTo(2,3,1,-1,0,-7);684 c.bezierCurveTo(-2,-1,-2,4,-3,10);685 c.lineTo(-4,14);686 c.bezierCurveTo(-4,15,-4,16,-5,17);687 c.bezierCurveTo(-5,18,-6,19,-7,19);688 c.bezierCurveTo(-8,19,-9,18,-9,15);689 c.bezierCurveTo(-10,14,-11,9,-11,6);690 c.bezierCurveTo(-12,-1,-12,-4,-13,-9);691 c.lineTo(-13,-13);692 c.bezierCurveTo(-14,-15,-14,-16,-14,-17);693 c.bezierCurveTo(-14,-18,-13,-18,-13,-19);694 c.bezierCurveTo(-13,-19,-12,-19,-11,-19);695 c.lineTo(-11,-19);696}else if(str=="X"){697 c.moveTo(13,-15);698 c.bezierCurveTo(11,-12,4,-1,3,-0);699 c.bezierCurveTo(3,-0,12,13,13,14);700 c.bezierCurveTo(13,15,13,15,13,16);701 c.bezierCurveTo(13,17,13,17,13,18);702 c.bezierCurveTo(12,18,12,18,11,18);703 c.bezierCurveTo(11,18,10,18,10,18);704 c.bezierCurveTo(9,17,1,3,1,3);705 c.lineTo(-6,13);706 c.lineTo(-10,17);707 c.bezierCurveTo(-11,18,-11,18,-12,18);708 c.bezierCurveTo(-12,18,-13,18,-13,17);709 c.bezierCurveTo(-14,17,-14,16,-14,16);710 c.bezierCurveTo(-14,15,-14,15,-13,14);711 c.lineTo(-2,-1);712 c.bezierCurveTo(-3,-3,-12,-14,-13,-14);713 c.bezierCurveTo(-14,-15,-14,-15,-14,-16);714 c.bezierCurveTo(-14,-17,-14,-17,-13,-18);715 c.bezierCurveTo(-13,-18,-12,-19,-12,-19);716 c.bezierCurveTo(-11,-19,-9,-17,-7,-14);717 c.bezierCurveTo(-7,-14,-0,-6,1,-4);718 c.lineTo(6,-12);719 c.bezierCurveTo(9,-16,11,-19,11,-19);720 c.bezierCurveTo(12,-19,12,-18,13,-18);721 c.bezierCurveTo(13,-17,14,-17,14,-16);722 c.bezierCurveTo(13,-16,13,-15,13,-15);723 c.lineTo(13,-15);724}else if(str=="Y"){725 c.moveTo(12,-13);726 c.bezierCurveTo(12,-13,11,-12,11,-11);727 c.lineTo(7,-1);728 c.bezierCurveTo(6,3,4,6,3,9);729 c.lineTo(0,14);730 c.lineTo(-1,17);731 c.bezierCurveTo(-2,18,-2,18,-3,18);732 c.bezierCurveTo(-4,18,-4,18,-5,17);733 c.bezierCurveTo(-5,17,-6,16,-6,16);734 c.bezierCurveTo(-6,15,-5,13,-3,11);735 c.lineTo(-1,6);736 c.bezierCurveTo(-3,2,-8,-7,-9,-9);737 c.bezierCurveTo(-11,-13,-13,-15,-13,-15);738 c.bezierCurveTo(-13,-16,-13,-16,-13,-17);739 c.bezierCurveTo(-13,-17,-13,-18,-12,-18);740 c.bezierCurveTo(-12,-19,-11,-19,-11,-19);741 c.bezierCurveTo(-10,-19,-10,-19,-9,-18);742 c.bezierCurveTo(-9,-18,0,-2,2,0);743 c.lineTo(7,-12);744 c.bezierCurveTo(7,-13,8,-15,9,-17);745 c.bezierCurveTo(9,-18,10,-19,11,-19);746 c.bezierCurveTo(12,-19,12,-19,13,-18);747 c.bezierCurveTo(13,-18,13,-17,13,-17);748 c.bezierCurveTo(13,-16,13,-15,12,-13);749 c.lineTo(12,-13);750}else if(str=="Z"){751 c.moveTo(10,-12);752 c.bezierCurveTo(10,-12,3,-4,-0,1);753 c.lineTo(-6,9);754 c.bezierCurveTo(-6,9,-8,13,-9,14);755 c.lineTo(-1,14);756 c.bezierCurveTo(2,14,5,13,6,13);757 c.bezierCurveTo(8,13,10,13,11,14);758 c.bezierCurveTo(12,14,12,15,12,16);759 c.bezierCurveTo(12,17,12,17,12,18);760 c.bezierCurveTo(11,18,11,18,10,18);761 c.bezierCurveTo(10,18,-10,18,-12,18);762 c.bezierCurveTo(-13,18,-14,18,-14,16);763 c.bezierCurveTo(-14,15,-10,7,-9,5);764 c.lineTo(-3,-3);765 c.bezierCurveTo(-0,-8,3,-12,6,-14);766 c.lineTo(-2,-14);767 c.bezierCurveTo(-2,-14,-10,-14,-10,-14);768 c.bezierCurveTo(-12,-14,-14,-14,-14,-16);769 c.bezierCurveTo(-14,-17,-13,-18,-13,-18);770 c.bezierCurveTo(-12,-18,-10,-19,-9,-19);771 c.bezierCurveTo(-8,-19,6,-19,7,-19);772 c.bezierCurveTo(11,-19,12,-17,12,-16);773 c.bezierCurveTo(12,-15,12,-14,10,-12);774 c.lineTo(10,-12);775}else if(str=="0"){776 c.moveTo(0,18);777 c.bezierCurveTo(-5,18,-8,16,-10,12);778 c.bezierCurveTo(-12,9,-13,4,-13,-1);779 c.bezierCurveTo(-13,-5,-12,-9,-10,-13);780 c.bezierCurveTo(-7,-16,-4,-18,1,-18);781 c.bezierCurveTo(5,-18,8,-17,11,-13);782 c.bezierCurveTo(13,-10,14,-7,14,-2);783 c.bezierCurveTo(14,4,13,10,10,13);784 c.bezierCurveTo(8,17,5,18,0,18);785 c.lineTo(0,18);786 c.moveTo(1,-14);787 c.bezierCurveTo(-2,-14,-4,-12,-6,-10);788 c.bezierCurveTo(-8,-7,-8,-4,-8,-1);789 c.bezierCurveTo(-8,4,-8,8,-6,10);790 c.bezierCurveTo(-5,13,-3,14,0,14);791 c.bezierCurveTo(4,14,6,12,7,8);792 c.bezierCurveTo(9,6,9,3,9,-1);793 c.bezierCurveTo(9,-6,8,-9,7,-11);794 c.bezierCurveTo(6,-13,4,-14,1,-14);795 c.lineTo(1,-14);796 c.moveTo(6,-9);797 c.bezierCurveTo(6,-10,5,-10,4,-10);798 c.bezierCurveTo(4,-10,3,-10,2,-9);799 c.bezierCurveTo(1,-8,-3,2,-3,2);800 c.bezierCurveTo(-4,3,-4,5,-5,6);801 c.bezierCurveTo(-6,7,-6,7,-6,8);802 c.bezierCurveTo(-6,8,-6,9,-5,9);803 c.bezierCurveTo(-5,10,-4,10,-4,10);804 c.bezierCurveTo(-3,10,-2,10,-2,9);805 c.bezierCurveTo(-1,8,1,6,2,4);806 c.bezierCurveTo(2,4,5,-5,6,-6);807 c.bezierCurveTo(7,-7,7,-7,7,-8);808 c.bezierCurveTo(7,-8,7,-9,6,-9);809 c.lineTo(6,-9);810}else if(str=="1"){811 c.moveTo(11,18);812 c.lineTo(1,18);813 c.lineTo(-10,18);814 c.bezierCurveTo(-11,18,-11,18,-12,18);815 c.bezierCurveTo(-13,18,-13,17,-13,16);816 c.bezierCurveTo(-13,14,-12,14,-9,14);817 c.lineTo(-8,14);818 c.lineTo(-2,14);819 c.bezierCurveTo(-2,13,-2,2,-2,-2);820 c.bezierCurveTo(-2,-6,-2,-9,-2,-11);821 c.bezierCurveTo(-4,-10,-7,-8,-8,-8);822 c.bezierCurveTo(-8,-8,-9,-8,-9,-8);823 c.bezierCurveTo(-10,-9,-10,-9,-10,-10);824 c.bezierCurveTo(-10,-11,-9,-12,-8,-13);825 c.bezierCurveTo(-7,-13,-4,-15,-2,-17);826 c.bezierCurveTo(-1,-18,0,-19,2,-19);827 c.bezierCurveTo(3,-19,3,-18,3,-17);828 c.bezierCurveTo(3,-17,3,-5,3,-1);829 c.bezierCurveTo(2,3,2,13,2,14);830 c.lineTo(11,14);831 c.bezierCurveTo(11,14,12,14,12,14);832 c.bezierCurveTo(13,15,13,15,13,16);833 c.bezierCurveTo(13,16,13,17,12,17);834 c.bezierCurveTo(12,18,11,18,11,18);835 c.lineTo(11,18);836}else if(str=="2"){837 c.moveTo(11,18);838 c.bezierCurveTo(10,18,-1,18,-2,18);839 c.bezierCurveTo(-3,18,-8,18,-8,18);840 c.bezierCurveTo(-9,18,-10,18,-10,18);841 c.bezierCurveTo(-11,18,-12,17,-13,16);842 c.bezierCurveTo(-13,16,-13,15,-13,14);843 c.bezierCurveTo(-12,10,-9,6,-7,3);844 c.bezierCurveTo(-6,2,-5,2,-1,-1);845 c.bezierCurveTo(2,-3,4,-4,5,-5);846 c.bezierCurveTo(6,-7,7,-8,7,-10);847 c.bezierCurveTo(7,-11,6,-12,5,-13);848 c.bezierCurveTo(4,-14,2,-14,1,-14);849 c.bezierCurveTo(-1,-14,-3,-14,-4,-13);850 c.lineTo(-8,-10);851 c.bezierCurveTo(-9,-10,-10,-9,-10,-9);852 c.bezierCurveTo(-12,-9,-13,-10,-13,-11);853 c.bezierCurveTo(-13,-12,-13,-13,-12,-13);854 c.bezierCurveTo(-10,-15,-8,-17,-6,-17);855 c.bezierCurveTo(-4,-18,-2,-19,1,-19);856 c.bezierCurveTo(4,-19,7,-18,9,-17);857 c.bezierCurveTo(12,-15,13,-13,13,-11);858 c.bezierCurveTo(13,-9,13,-8,12,-6);859 c.bezierCurveTo(12,-5,11,-3,10,-2);860 c.bezierCurveTo(8,-1,6,1,3,3);861 c.bezierCurveTo(-1,5,-2,6,-3,7);862 c.bezierCurveTo(-5,9,-6,11,-8,14);863 c.lineTo(-2,13);864 c.bezierCurveTo(2,13,5,13,7,13);865 c.bezierCurveTo(8,13,9,13,11,13);866 c.bezierCurveTo(13,14,13,15,13,16);867 c.bezierCurveTo(13,16,13,17,13,17);868 c.bezierCurveTo(12,18,12,18,11,18);869 c.lineTo(11,18);870}else if(str=="3"){871 c.moveTo(13,7);872 c.bezierCurveTo(13,3,9,1,6,0);873 c.bezierCurveTo(7,0,7,0,7,-0);874 c.bezierCurveTo(11,-1,12,-4,12,-7);875 c.bezierCurveTo(12,-8,12,-8,12,-9);876 c.bezierCurveTo(12,-11,11,-13,8,-15);877 c.bezierCurveTo(6,-17,3,-19,-1,-19);878 c.bezierCurveTo(-4,-19,-5,-18,-7,-17);879 c.bezierCurveTo(-10,-16,-11,-14,-12,-12);880 c.bezierCurveTo(-12,-12,-12,-12,-12,-11);881 c.bezierCurveTo(-12,-11,-12,-10,-12,-10);882 c.bezierCurveTo(-10,-9,-10,-9,-10,-9);883 c.bezierCurveTo(-9,-9,-8,-10,-8,-10);884 c.lineTo(-7,-12);885 c.bezierCurveTo(-6,-13,-5,-13,-4,-13);886 c.bezierCurveTo(-3,-14,-3,-14,-1,-14);887 c.bezierCurveTo(1,-14,3,-14,4,-12);888 c.bezierCurveTo(6,-11,7,-10,7,-9);889 c.bezierCurveTo(7,-8,7,-8,7,-7);890 c.bezierCurveTo(7,-6,7,-6,6,-5);891 c.bezierCurveTo(6,-4,5,-4,4,-3);892 c.lineTo(-3,-2);893 c.bezierCurveTo(-5,-1,-5,-1,-5,0);894 c.bezierCurveTo(-5,1,-4,2,-2,2);895 c.bezierCurveTo(1,3,8,3,8,8);896 c.bezierCurveTo(8,10,7,11,6,12);897 c.bezierCurveTo(4,13,2,14,0,14);898 c.bezierCurveTo(-1,14,-3,14,-4,13);899 c.bezierCurveTo(-5,13,-6,12,-7,12);900 c.lineTo(-8,10);901 c.bezierCurveTo(-8,10,-9,9,-10,9);902 c.bezierCurveTo(-11,9,-11,9,-12,10);903 c.bezierCurveTo(-12,10,-12,11,-12,11);904 c.bezierCurveTo(-12,12,-12,12,-12,12);905 c.bezierCurveTo(-11,14,-10,16,-7,17);906 c.bezierCurveTo(-5,18,-3,19,0,19);907 c.bezierCurveTo(4,19,7,17,10,15);908 c.bezierCurveTo(12,13,14,11,13,7);909 c.lineTo(13,7);910}else if(str=="4"){911 c.moveTo(8,7);912 c.lineTo(8,16);913 c.bezierCurveTo(8,17,8,18,6,18);914 c.bezierCurveTo(5,18,4,17,4,15);915 c.bezierCurveTo(4,14,4,14,4,13);916 c.bezierCurveTo(4,13,4,13,4,12);917 c.lineTo(4,7);918 c.lineTo(-6,6);919 c.bezierCurveTo(-8,6,-10,6,-10,6);920 c.bezierCurveTo(-12,6,-13,5,-13,4);921 c.bezierCurveTo(-13,4,-12,3,-11,2);922 c.lineTo(-9,-1);923 c.lineTo(2,-17);924 c.bezierCurveTo(3,-18,4,-19,6,-19);925 c.bezierCurveTo(8,-19,9,-18,9,-17);926 c.lineTo(9,2);927 c.bezierCurveTo(9,2,9,2,10,2);928 c.bezierCurveTo(12,2,14,3,14,4);929 c.bezierCurveTo(14,6,13,6,12,7);930 c.bezierCurveTo(11,7,10,7,8,7);931 c.lineTo(8,7);932 c.moveTo(4,-12);933 c.bezierCurveTo(-0,-6,-3,-2,-6,2);934 c.lineTo(4,2);935 c.lineTo(4,-12);936 c.lineTo(4,-12);937}else if(str=="5"){938 c.moveTo(-2,18);939 c.bezierCurveTo(-6,18,-10,16,-12,13);940 c.bezierCurveTo(-13,13,-13,12,-13,12);941 c.bezierCurveTo(-13,11,-12,11,-12,10);942 c.bezierCurveTo(-11,10,-11,10,-10,10);943 c.bezierCurveTo(-9,10,-9,10,-8,11);944 c.bezierCurveTo(-7,12,-7,12,-6,13);945 c.bezierCurveTo(-5,13,-4,14,-2,14);946 c.bezierCurveTo(1,14,4,13,6,11);947 c.bezierCurveTo(8,9,9,8,9,6);948 c.bezierCurveTo(9,3,8,2,7,1);949 c.bezierCurveTo(6,-1,5,-2,3,-2);950 c.bezierCurveTo(1,-2,-1,-2,-2,-1);951 c.bezierCurveTo(-3,-1,-4,-0,-5,1);952 c.lineTo(-8,3);953 c.bezierCurveTo(-8,4,-9,4,-10,4);954 c.bezierCurveTo(-11,4,-11,4,-12,4);955 c.bezierCurveTo(-12,3,-12,3,-12,2);956 c.bezierCurveTo(-12,2,-13,0,-13,-2);957 c.bezierCurveTo(-12,-7,-12,-16,-12,-16);958 c.bezierCurveTo(-12,-17,-11,-19,-9,-19);959 c.bezierCurveTo(-9,-19,-8,-19,-8,-19);960 c.bezierCurveTo(-7,-19,4,-20,10,-18);961 c.bezierCurveTo(11,-18,12,-18,12,-18);962 c.bezierCurveTo(15,-17,13,-15,13,-14);963 c.bezierCurveTo(12,-13,10,-14,6,-14);964 c.bezierCurveTo(6,-14,5,-14,4,-14);965 c.bezierCurveTo(3,-14,3,-14,3,-14);966 c.lineTo(-2,-14);967 c.lineTo(-7,-14);968 c.bezierCurveTo(-7,-13,-7,-8,-8,-4);969 c.bezierCurveTo(-6,-5,-1,-6,3,-6);970 c.bezierCurveTo(6,-6,9,-5,11,-2);971 c.bezierCurveTo(13,-0,14,2,14,6);972 c.bezierCurveTo(14,10,12,11,10,14);973 c.bezierCurveTo(7,17,3,18,-2,18);974 c.lineTo(-2,18);975}else if(str=="6"){976 c.moveTo(-1,18);977 c.bezierCurveTo(-5,18,-8,17,-11,14);978 c.bezierCurveTo(-12,12,-13,9,-13,5);979 c.bezierCurveTo(-13,-2,-10,-10,-3,-15);980 c.lineTo(-0,-17);981 c.bezierCurveTo(1,-18,2,-19,3,-19);982 c.bezierCurveTo(3,-19,4,-19,4,-18);983 c.bezierCurveTo(5,-18,5,-17,5,-17);984 c.bezierCurveTo(5,-16,4,-15,2,-14);985 c.lineTo(-3,-9);986 c.bezierCurveTo(-4,-8,-6,-5,-7,-3);987 c.bezierCurveTo(-6,-3,-4,-4,-3,-4);988 c.bezierCurveTo(-2,-4,-0,-4,0,-4);989 c.bezierCurveTo(4,-4,7,-3,10,-1);990 c.bezierCurveTo(12,0,13,3,13,6);991 c.bezierCurveTo(13,10,12,13,9,15);992 c.bezierCurveTo(7,17,4,18,-1,18);993 c.lineTo(-1,18);994 c.moveTo(-1,0);995 c.bezierCurveTo(-2,0,-3,1,-5,1);996 c.bezierCurveTo(-5,1,-7,2,-8,3);997 c.bezierCurveTo(-8,4,-8,4,-8,5);998 c.bezierCurveTo(-8,8,-8,10,-7,11);999 c.bezierCurveTo(-6,14,-3,14,-0,14);1000 c.bezierCurveTo(2,14,5,14,6,12);1001 c.bezierCurveTo(8,11,8,9,8,6);1002 c.bezierCurveTo(8,4,7,3,6,2);1003 c.bezierCurveTo(4,1,2,0,-1,0);1004 c.lineTo(-1,0);1005}else if(str=="7"){1006 c.moveTo(12,-14);1007 c.bezierCurveTo(12,-14,-2,9,-3,12);1008 c.bezierCurveTo(-3,14,-5,16,-6,17);1009 c.bezierCurveTo(-6,18,-7,18,-7,18);1010 c.bezierCurveTo(-8,18,-9,18,-9,18);1011 c.bezierCurveTo(-10,17,-10,17,-10,16);1012 c.bezierCurveTo(-10,15,-9,14,-8,11);1013 c.bezierCurveTo(-8,11,3,-11,6,-14);1014 c.lineTo(6,-15);1015 c.lineTo(-6,-14);1016 c.lineTo(-11,-13);1017 c.bezierCurveTo(-13,-13,-13,-14,-13,-16);1018 c.bezierCurveTo(-13,-16,-13,-17,-13,-17);1019 c.bezierCurveTo(-12,-18,-12,-18,-11,-18);1020 c.bezierCurveTo(-9,-19,-6,-19,-2,-20);1021 c.bezierCurveTo(3,-20,11,-19,11,-19);1022 c.bezierCurveTo(13,-19,13,-18,13,-17);1023 c.bezierCurveTo(14,-16,13,-15,12,-14);1024 c.lineTo(12,-14);1025}else if(str=="8"){1026 c.moveTo(-0,18);1027 c.bezierCurveTo(-4,18,-7,18,-9,16);1028 c.bezierCurveTo(-12,15,-13,12,-13,9);1029 c.bezierCurveTo(-14,4,-11,0,-7,-1);1030 c.bezierCurveTo(-11,-3,-12,-6,-12,-9);1031 c.bezierCurveTo(-12,-12,-11,-14,-8,-16);1032 c.bezierCurveTo(-6,-18,-3,-19,0,-19);1033 c.bezierCurveTo(8,-19,11,-16,11,-9);1034 c.bezierCurveTo(11,-7,11,-6,10,-5);1035 c.bezierCurveTo(9,-4,8,-3,6,-2);1036 c.bezierCurveTo(9,-1,11,0,12,2);1037 c.bezierCurveTo(13,3,14,6,14,8);1038 c.bezierCurveTo(14,12,12,14,10,16);1039 c.bezierCurveTo(7,18,4,18,-0,18);1040 c.lineTo(-0,18);1041 c.moveTo(-1,0);1042 c.bezierCurveTo(-3,2,-5,3,-6,3);1043 c.bezierCurveTo(-8,5,-8,7,-8,9);1044 c.bezierCurveTo(-8,11,-7,12,-5,13);1045 c.bezierCurveTo(-4,14,-2,14,-0,14);1046 c.bezierCurveTo(3,14,5,14,6,12);1047 c.bezierCurveTo(7,11,8,10,8,8);1048 c.bezierCurveTo(8,5,7,4,5,3);1049 c.bezierCurveTo(4,2,2,1,-1,0);1050 c.lineTo(-1,0);1051 c.moveTo(0,-15);1052 c.bezierCurveTo(-2,-15,-4,-14,-5,-13);1053 c.bezierCurveTo(-6,-12,-7,-11,-7,-9);1054 c.bezierCurveTo(-7,-6,-5,-5,-1,-4);1055 c.bezierCurveTo(1,-5,3,-5,4,-6);1056 c.bezierCurveTo(5,-7,6,-8,6,-9);1057 c.bezierCurveTo(6,-11,6,-13,5,-14);1058 c.bezierCurveTo(4,-14,2,-15,0,-15);1059 c.lineTo(0,-15);1060}else if(str=="9"){1061 c.moveTo(1,-19);1062 c.bezierCurveTo(5,-19,8,-18,11,-15);1063 c.bezierCurveTo(12,-12,13,-10,13,-6);1064 c.bezierCurveTo(13,2,10,9,3,15);1065 c.lineTo(0,17);1066 c.bezierCurveTo(-1,18,-2,18,-3,18);1067 c.bezierCurveTo(-3,18,-4,18,-4,18);1068 c.bezierCurveTo(-5,17,-5,17,-5,16);1069 c.bezierCurveTo(-5,16,-4,15,-2,13);1070 c.lineTo(3,9);1071 c.bezierCurveTo(4,8,6,5,7,2);1072 c.bezierCurveTo(6,3,4,3,3,3);1073 c.bezierCurveTo(1,4,1,4,-0,4);1074 c.bezierCurveTo(-4,4,-7,3,-10,1);1075 c.bezierCurveTo(-12,-1,-13,-3,-13,-6);1076 c.bezierCurveTo(-13,-10,-12,-13,-9,-15);1077 c.bezierCurveTo(-7,-18,-4,-19,1,-19);1078 c.lineTo(1,-19);1079 c.moveTo(1,-1);1080 c.bezierCurveTo(2,-1,3,-1,5,-2);1081 c.bezierCurveTo(5,-2,7,-3,8,-4);1082 c.bezierCurveTo(8,-4,8,-5,8,-6);1083 c.bezierCurveTo(8,-9,8,-10,7,-12);1084 c.bezierCurveTo(6,-14,3,-15,0,-15);1085 c.bezierCurveTo(-2,-15,-5,-14,-6,-13);1086 c.bezierCurveTo(-8,-11,-8,-10,-8,-7);1087 c.bezierCurveTo(-8,-5,-7,-4,-6,-3);1088 c.bezierCurveTo(-4,-1,-2,-1,1,-1);1089 c.lineTo(1,-1);1090}...
layer1.js
Source:layer1.js
1import * as THREE from 'three';2const content = [];3const shape1 = new THREE.Shape();4shape1.moveTo(185.6, 47.8);5shape1.bezierCurveTo(185.4, 47.8, 185.2, 47.9, 185.0, 48.0);6shape1.bezierCurveTo(184.8, 48.1, 184.6, 48.2, 184.4, 48.2);7shape1.bezierCurveTo(183.7, 48.6, 182.9, 48.9, 182.3, 49.3);8shape1.bezierCurveTo(182.0, 49.5, 181.7, 49.6, 181.5, 49.8);9shape1.bezierCurveTo(181.3, 49.9, 181.2, 50.0, 181.0, 50.2);10shape1.lineTo(180.8, 50.3);11shape1.bezierCurveTo(180.5, 50.5, 180.3, 50.7, 180.1, 50.9);12shape1.bezierCurveTo(179.8, 51.1, 179.5, 51.3, 179.3, 51.5);13shape1.lineTo(178.8, 52.0);14shape1.bezierCurveTo(178.6, 52.2, 178.5, 52.3, 178.4, 52.4);15shape1.bezierCurveTo(178.2, 52.6, 178.0, 52.8, 177.8, 53.0);16shape1.bezierCurveTo(177.7, 53.1, 177.5, 53.3, 177.4, 53.5);17shape1.lineTo(177.3, 53.7);18shape1.bezierCurveTo(176.8, 54.2, 176.4, 54.8, 175.9, 55.5);19shape1.bezierCurveTo(175.7, 55.8, 175.6, 56.1, 175.4, 56.3);20shape1.bezierCurveTo(175.3, 56.6, 175.1, 56.9, 175.0, 57.1);21shape1.bezierCurveTo(175.0, 57.2, 174.9, 57.4, 174.9, 57.4);22shape1.bezierCurveTo(174.7, 57.7, 174.6, 58.0, 174.5, 58.3);23shape1.bezierCurveTo(174.3, 58.6, 174.2, 58.9, 174.1, 59.3);24shape1.bezierCurveTo(174.0, 59.6, 173.9, 59.9, 173.8, 60.2);25shape1.bezierCurveTo(173.7, 60.6, 173.6, 61.0, 173.5, 61.4);26shape1.bezierCurveTo(173.4, 61.6, 173.4, 61.8, 173.4, 62.0);27shape1.bezierCurveTo(173.3, 62.2, 173.3, 62.3, 173.3, 62.5);28shape1.bezierCurveTo(173.2, 62.8, 173.2, 63.1, 173.1, 63.4);29shape1.bezierCurveTo(173.1, 63.7, 173.1, 64.0, 173.1, 64.3);30shape1.bezierCurveTo(173.0, 64.5, 173.0, 64.6, 173.0, 64.8);31shape1.bezierCurveTo(173.0, 65.0, 173.0, 65.3, 173.0, 65.6);32shape1.bezierCurveTo(173.0, 66.0, 173.0, 66.4, 173.0, 66.8);33shape1.bezierCurveTo(173.0, 66.9, 173.0, 67.0, 173.0, 67.1);34shape1.lineTo(173.0, 82.8);35shape1.lineTo(125.1, 82.8);36shape1.bezierCurveTo(124.3, 82.8, 123.6, 82.1, 123.6, 81.3);37shape1.lineTo(123.6, 29.1);38shape1.bezierCurveTo(123.6, 28.7, 123.7, 28.4, 124.0, 28.1);39shape1.bezierCurveTo(124.1, 28.0, 124.3, 27.9, 124.4, 27.8);40shape1.bezierCurveTo(124.5, 27.7, 124.6, 27.7, 124.7, 27.7);41shape1.bezierCurveTo(124.8, 27.6, 124.9, 27.6, 125.0, 27.6);42shape1.bezierCurveTo(125.6, 27.6, 126.1, 27.8, 126.4, 28.3);43shape1.bezierCurveTo(126.4, 28.3, 128.0, 30.3, 133.7, 27.8);44shape1.bezierCurveTo(134.8, 27.2, 136.1, 26.5, 137.6, 25.6);45shape1.lineTo(137.8, 25.5);46shape1.lineTo(138.1, 25.3);47shape1.bezierCurveTo(138.2, 25.2, 138.3, 25.2, 138.4, 25.1);48shape1.bezierCurveTo(139.2, 24.6, 140.0, 24.0, 140.9, 23.4);49shape1.bezierCurveTo(143.1, 21.7, 145.5, 19.7, 148.1, 17.3);50shape1.bezierCurveTo(148.6, 16.9, 149.0, 16.5, 149.5, 16.1);51shape1.bezierCurveTo(149.8, 15.7, 150.2, 15.4, 150.6, 15.1);52shape1.bezierCurveTo(150.9, 14.8, 151.3, 14.5, 151.6, 14.1);53shape1.lineTo(151.8, 14.0);54shape1.bezierCurveTo(152.5, 13.4, 153.3, 12.7, 154.0, 12.1);55shape1.bezierCurveTo(155.0, 11.3, 155.9, 10.5, 156.8, 9.8);56shape1.bezierCurveTo(157.2, 9.6, 157.5, 9.3, 157.8, 9.1);57shape1.bezierCurveTo(158.5, 8.6, 159.2, 8.0, 159.9, 7.5);58shape1.bezierCurveTo(160.1, 7.4, 160.4, 7.2, 160.7, 7.0);59shape1.lineTo(161.2, 6.7);60shape1.bezierCurveTo(161.5, 6.5, 161.7, 6.3, 162.0, 6.1);61shape1.bezierCurveTo(162.3, 5.9, 162.6, 5.7, 163.0, 5.5);62shape1.lineTo(163.3, 5.4);63shape1.bezierCurveTo(163.7, 5.1, 164.1, 4.9, 164.5, 4.6);64shape1.lineTo(164.7, 4.5);65shape1.bezierCurveTo(164.9, 4.4, 165.2, 4.3, 165.4, 4.2);66shape1.bezierCurveTo(165.4, 4.2, 165.4, 4.1, 165.5, 4.1);67shape1.bezierCurveTo(165.8, 4.0, 166.2, 3.8, 166.5, 3.6);68shape1.lineTo(166.6, 3.6);69shape1.bezierCurveTo(167.9, 3.0, 169.2, 2.6, 170.4, 2.2);70shape1.bezierCurveTo(170.6, 2.2, 170.8, 2.1, 171.0, 2.1);71shape1.bezierCurveTo(171.1, 2.1, 171.2, 2.0, 171.3, 2.0);72shape1.lineTo(171.4, 2.0);73shape1.bezierCurveTo(171.6, 2.0, 171.8, 1.9, 172.1, 1.9);74shape1.bezierCurveTo(172.2, 1.8, 172.5, 1.8, 172.7, 1.8);75shape1.bezierCurveTo(172.8, 1.8, 173.0, 1.7, 173.1, 1.7);76shape1.bezierCurveTo(173.3, 1.7, 173.5, 1.7, 173.7, 1.7);77shape1.lineTo(173.9, 1.6);78shape1.bezierCurveTo(174.1, 1.6, 174.3, 1.6, 174.5, 1.6);79shape1.bezierCurveTo(177.4, 1.4, 180.2, 1.8, 183.4, 2.3);80shape1.bezierCurveTo(184.0, 2.4, 184.7, 2.5, 185.3, 2.6);81shape1.lineTo(185.3, 47.0);82shape1.bezierCurveTo(185.3, 47.3, 185.4, 47.5, 185.6, 47.8);83content.push(shape1);84const shape2 = new THREE.Shape();85shape2.moveTo(281.4, 14.7);86shape2.bezierCurveTo(281.2, 14.6, 277.7, 11.2, 271.5, 7.7);87shape2.bezierCurveTo(270.6, 7.2, 269.6, 6.7, 268.6, 6.2);88shape2.bezierCurveTo(268.2, 6.0, 267.9, 5.8, 267.5, 5.6);89shape2.bezierCurveTo(266.9, 5.4, 266.4, 5.2, 265.9, 4.9);90shape2.bezierCurveTo(259.4, 2.1, 252.6, 0.5, 245.7, 0.1);91shape2.bezierCurveTo(245.3, 0.1, 244.9, 0.0, 244.4, 0.0);92shape2.bezierCurveTo(238.6, -0.2, 232.8, 0.6, 226.9, 2.2);93shape2.bezierCurveTo(226.3, 2.3, 225.8, 2.9, 225.8, 3.6);94shape2.lineTo(225.8, 39.6);95shape2.lineTo(201.8, 31.4);96shape2.bezierCurveTo(201.6, 31.3, 201.5, 31.3, 201.3, 31.3);97shape2.bezierCurveTo(201.1, 31.3, 201.0, 31.3, 200.9, 31.4);98shape2.bezierCurveTo(200.8, 31.4, 200.8, 31.4, 200.8, 31.4);99shape2.bezierCurveTo(200.7, 31.4, 200.5, 31.5, 200.4, 31.6);100shape2.bezierCurveTo(200.4, 31.6, 200.3, 31.7, 200.3, 31.7);101shape2.bezierCurveTo(200.2, 31.8, 200.1, 31.9, 200.1, 32.0);102shape2.bezierCurveTo(200.1, 32.0, 200.0, 32.0, 200.0, 32.0);103shape2.bezierCurveTo(200.0, 32.2, 199.9, 32.3, 199.9, 32.5);104shape2.bezierCurveTo(199.9, 32.5, 199.9, 32.6, 199.9, 32.6);105shape2.bezierCurveTo(199.8, 32.7, 199.8, 32.7, 199.8, 32.8);106shape2.lineTo(199.8, 51.0);107shape2.bezierCurveTo(199.8, 51.5, 200.1, 52.0, 200.5, 52.2);108shape2.bezierCurveTo(202.5, 53.5, 204.2, 55.2, 205.4, 57.2);109shape2.bezierCurveTo(207.0, 59.7, 207.8, 62.6, 207.8, 65.6);110shape2.bezierCurveTo(207.8, 66.1, 207.8, 66.5, 207.8, 67.0);111shape2.bezierCurveTo(207.8, 67.1, 207.8, 67.3, 207.8, 67.5);112shape2.lineTo(207.8, 85.9);113shape2.bezierCurveTo(207.8, 86.4, 208.1, 86.9, 208.5, 87.2);114shape2.bezierCurveTo(208.7, 87.3, 208.9, 87.4, 209.1, 87.5);115shape2.lineTo(209.1, 87.5);116shape2.bezierCurveTo(209.7, 87.8, 210.3, 88.2, 210.8, 88.5);117shape2.lineTo(210.8, 101.9);118shape2.bezierCurveTo(210.8, 102.8, 210.2, 103.4, 209.3, 103.4);119shape2.lineTo(175.3, 103.4);120shape2.lineTo(173.8, 104.3);121shape2.bezierCurveTo(173.3, 104.6, 173.0, 105.1, 173.0, 105.6);122shape2.lineTo(173.0, 114.3);123shape2.lineTo(160.7, 114.3);124shape2.bezierCurveTo(159.8, 114.3, 159.2, 114.9, 159.2, 115.8);125shape2.lineTo(159.2, 127.8);126shape2.lineTo(146.3, 127.8);127shape2.bezierCurveTo(145.5, 127.8, 144.8, 128.4, 144.8, 129.3);128shape2.lineTo(144.8, 142.8);129shape2.bezierCurveTo(144.8, 143.6, 145.5, 144.3, 146.3, 144.3);130shape2.lineTo(195.2, 144.3);131shape2.lineTo(195.2, 142.8);132shape2.bezierCurveTo(195.2, 124.6, 204.1, 107.5, 219.0, 96.9);133shape2.bezierCurveTo(219.3, 96.7, 219.6, 96.4, 220.0, 96.2);134shape2.bezierCurveTo(220.4, 95.9, 220.9, 95.6, 221.3, 95.3);135shape2.lineTo(221.3, 93.7);136shape2.bezierCurveTo(221.8, 93.9, 222.4, 94.1, 222.9, 94.4);137shape2.bezierCurveTo(223.7, 94.7, 224.5, 95.0, 225.3, 95.3);138shape2.lineTo(225.5, 95.4);139shape2.bezierCurveTo(225.6, 95.5, 225.8, 95.5, 225.8, 95.6);140shape2.bezierCurveTo(226.8, 95.9, 227.8, 96.3, 228.7, 96.6);141shape2.bezierCurveTo(236.3, 99.2, 243.4, 100.6, 249.8, 100.7);142shape2.lineTo(251.2, 100.7);143shape2.bezierCurveTo(254.2, 100.7, 257.1, 100.3, 259.8, 99.7);144shape2.bezierCurveTo(260.6, 99.6, 261.3, 99.4, 262.0, 99.2);145shape2.bezierCurveTo(263.8, 98.7, 265.5, 98.0, 267.1, 97.3);146shape2.bezierCurveTo(272.8, 94.7, 277.6, 90.5, 281.6, 85.0);147shape2.bezierCurveTo(281.7, 84.7, 281.8, 84.4, 281.8, 84.1);148shape2.lineTo(281.8, 15.8);149content.push(shape2);150const shape3 = new THREE.Shape();151shape3.moveTo(60.1, 57.2);152shape3.bezierCurveTo(58.8, 55.8, 57.3, 54.2, 54.2, 54.2);153shape3.bezierCurveTo(51.2, 54.2, 49.6, 55.8, 48.3, 57.2);154shape3.bezierCurveTo(48.1, 57.4, 48.0, 57.6, 47.8, 57.7);155shape3.bezierCurveTo(46.8, 58.7, 46.0, 59.3, 44.6, 59.3);156shape3.bezierCurveTo(43.2, 59.3, 42.4, 58.7, 41.4, 57.7);157shape3.bezierCurveTo(41.2, 57.6, 41.1, 57.4, 40.9, 57.2);158shape3.bezierCurveTo(39.6, 55.8, 38.0, 54.2, 35.0, 54.2);159shape3.bezierCurveTo(31.9, 54.2, 30.4, 55.8, 29.1, 57.2);160shape3.bezierCurveTo(28.9, 57.4, 28.7, 57.6, 28.5, 57.7);161shape3.bezierCurveTo(27.6, 58.7, 26.8, 59.3, 25.4, 59.3);162shape3.bezierCurveTo(24.0, 59.3, 23.2, 58.7, 22.2, 57.7);163shape3.bezierCurveTo(22.0, 57.6, 21.8, 57.4, 21.6, 57.2);164shape3.bezierCurveTo(20.4, 55.8, 18.8, 54.2, 15.8, 54.2);165shape3.bezierCurveTo(12.7, 54.2, 11.1, 55.8, 9.9, 57.2);166shape3.bezierCurveTo(9.7, 57.4, 9.5, 57.6, 9.3, 57.7);167shape3.bezierCurveTo(8.3, 58.7, 7.5, 59.3, 6.1, 59.3);168shape3.bezierCurveTo(4.7, 59.3, 3.9, 58.7, 3.0, 57.7);169shape3.bezierCurveTo(2.7, 57.5, 2.3, 57.3, 1.9, 57.3);170shape3.lineTo(1.5, 57.3);171shape3.bezierCurveTo(0.7, 57.3, 0.0, 58.0, 0.0, 58.8);172shape3.lineTo(0.0, 70.1);173shape3.bezierCurveTo(0.0, 71.0, 0.7, 71.6, 1.5, 71.6);174shape3.lineTo(60.1, 71.6);175shape3.lineTo(60.1, 57.2);176content.push(shape3);177exports.content = content;178exports.color = 0xe3d1aa;...
icons.js
Source:icons.js
...5 ctx.moveTo(35,7);6 ctx.lineTo(29,1);7 ctx.lineTo(4,1);8 ctx.lineTo(4,1);9 ctx.bezierCurveTo(3,1,1,3,1,4);10 ctx.lineTo(1,32);11 ctx.bezierCurveTo(1,33,3,35,4,35);12 ctx.lineTo(4,35);13 ctx.lineTo(32,35);14 ctx.bezierCurveTo(33,35,33,34,34,34);15 ctx.bezierCurveTo(35,33,35,33,35,32);16 ctx.bezierCurveTo(35,32,35,32,35,32);17 ctx.lineTo(35,32);18 ctx.lineTo(35,7);19 ctx.lineTo(35,7);20 ctx.fill();21 ctx.fillStyle='#A7A9AC';22 ctx.strokeStyle='#000000';23 ctx.lineWidth='0.25';24 ctx.beginPath();25 ctx.moveTo(28,1);26 ctx.bezierCurveTo(28,4,28,7,28,10);27 ctx.bezierCurveTo(28,10,28,10,28,11);28 ctx.bezierCurveTo(27,12,27,12,26,12);29 ctx.bezierCurveTo(24,12,22,12,19,12);30 ctx.bezierCurveTo(17,12,14,12,11,12);31 ctx.bezierCurveTo(10,12,9,12,9,10);32 ctx.bezierCurveTo(9,7,9,4,9,2);33 ctx.bezierCurveTo(9,1,9,1,9,1);34 ctx.bezierCurveTo(15,1,21,1,28,1);35 ctx.lineTo(28,1);36 ctx.moveTo(26,7);37 ctx.bezierCurveTo(26,7,26,7,26,7);38 ctx.bezierCurveTo(26,6,26,4,26,3);39 ctx.bezierCurveTo(26,3,25,3,25,3);40 ctx.bezierCurveTo(24,3,22,3,20,3);41 ctx.bezierCurveTo(20,3,20,3,20,3);42 ctx.bezierCurveTo(20,5,20,8,20,10);43 ctx.bezierCurveTo(20,10,20,10,20,10);44 ctx.bezierCurveTo(22,10,23,10,25,10);45 ctx.bezierCurveTo(25,10,25,10,25,10);46 ctx.bezierCurveTo(26,9,26,8,26,7);47 ctx.lineTo(26,7);48 ctx.fill();49 ctx.stroke();50 ctx.fillStyle='#F0F2F3';51 ctx.beginPath();52 ctx.moveTo(5,33);53 ctx.bezierCurveTo(5,31,5,30,5,28);54 ctx.bezierCurveTo(5,25,5,23,5,20);55 ctx.bezierCurveTo(5,19,6,18,7,18);56 ctx.bezierCurveTo(14,18,22,18,29,18);57 ctx.bezierCurveTo(30,18,31,19,31,20);58 ctx.bezierCurveTo(31,24,31,29,31,33);59 ctx.bezierCurveTo(31,33,31,33,31,33);60 ctx.bezierCurveTo(22,33,14,33,5,33);61 ctx.lineTo(5,33);62 ctx.fill();63 ctx.fillStyle='#C9CED2';64 ctx.beginPath();65 ctx.moveTo(5,33);66 ctx.bezierCurveTo(14,33,22,33,31,33);67 ctx.bezierCurveTo(31,34,31,34,31,35);68 ctx.bezierCurveTo(31,35,31,35,31,35);69 ctx.bezierCurveTo(22,35,14,35,5,35);70 ctx.bezierCurveTo(5,35,5,35,5,35);71 ctx.bezierCurveTo(5,34,5,34,5,33);72 ctx.lineTo(5,33);73 ctx.fill();74 ctx.fillStyle='#C9CED2';75 ctx.beginPath();76 ctx.moveTo(30,29);77 ctx.bezierCurveTo(30,29,30,29,29,29);78 ctx.lineTo(29,29);79 ctx.lineTo(7,29);80 ctx.lineTo(7,29);81 ctx.bezierCurveTo(7,29,7,29,7,29);82 ctx.bezierCurveTo(6,29,6,29,6,29);83 ctx.bezierCurveTo(7,30,7,30,7,30);84 ctx.bezierCurveTo(7,30,7,30,7,30);85 ctx.lineTo(7,30);86 ctx.lineTo(29,30);87 ctx.lineTo(29,30);88 ctx.bezierCurveTo(30,30,30,30,30,29);89 ctx.lineTo(30,29);90 ctx.fill();91 ctx.fillStyle='#C9CED2';92 ctx.beginPath();93 ctx.moveTo(30,22);94 ctx.bezierCurveTo(30,21,30,21,29,21);95 ctx.lineTo(29,21);96 ctx.lineTo(7,21);97 ctx.lineTo(7,21);98 ctx.bezierCurveTo(7,21,7,21,7,21);99 ctx.bezierCurveTo(6,21,6,21,6,22);100 ctx.bezierCurveTo(7,22,7,22,7,22);101 ctx.bezierCurveTo(7,22,7,22,7,22);102 ctx.lineTo(7,22);103 ctx.lineTo(29,22);104 ctx.lineTo(29,22);105 ctx.bezierCurveTo(30,22,30,22,30,22);106 ctx.lineTo(30,22);107 ctx.fill();108 ctx.fillStyle='#C9CED2';109 ctx.beginPath();110 ctx.moveTo(30,26);111 ctx.bezierCurveTo(30,25,30,25,29,25);112 ctx.lineTo(29,25);113 ctx.lineTo(7,25);114 ctx.lineTo(7,25);115 ctx.bezierCurveTo(7,25,7,25,7,25);116 ctx.bezierCurveTo(6,25,6,25,6,26);117 ctx.bezierCurveTo(7,26,7,26,7,26);118 ctx.bezierCurveTo(7,26,7,26,7,26);119 ctx.lineTo(7,26);120 ctx.lineTo(29,26);121 ctx.lineTo(29,26);122 ctx.bezierCurveTo(30,26,30,26,30,26);123 ctx.lineTo(30,26);124 ctx.fill();125}126function folder(){127 //--==## SVGID_1_ linearGradient ##==--128var SVGID_1_=ctx.createLinearGradient(16,5,15,32);129SVGID_1_.addColorStop(0,'RGB(219,170,93)');130SVGID_1_.addColorStop(1,'RGB(161,126,68)');131ctx.fillStyle=SVGID_1_;132ctx.beginPath();133ctx.moveTo(15,8);134ctx.lineTo(30,8);135ctx.bezierCurveTo(31,8,31,8,31,9);136ctx.lineTo(31,31);137ctx.bezierCurveTo(31,32,31,32,30,32);138ctx.lineTo(1,32);139ctx.bezierCurveTo(1,32,0,32,0,31);140ctx.lineTo(0,9);141ctx.bezierCurveTo(0,8,1,8,1,8);142ctx.lineTo(4,8);143ctx.lineTo(4,6);144ctx.bezierCurveTo(4,5,5,5,5,5);145ctx.lineTo(14,5);146ctx.bezierCurveTo(14,5,15,5,15,6);147ctx.lineTo(15,8);148ctx.lineTo(15,8);149ctx.fill();150ctx.fillStyle='#F0F2F3';151ctx.strokeStyle='#58595B';152ctx.lineWidth='0.5';153ctx.beginPath();154ctx.moveTo(17,29);155ctx.lineTo(33,16);156ctx.lineTo(25,2);157ctx.lineTo(5,13);158ctx.lineTo(12,29);159ctx.lineTo(17,29);160ctx.fill();161ctx.stroke();162ctx.fillStyle='#C9CED2';163ctx.beginPath();164ctx.moveTo(6,13);165ctx.lineTo(32,13);166ctx.lineTo(31,13);167ctx.lineTo(29,13);168ctx.lineTo(25,6);169ctx.lineTo(25,6);170ctx.bezierCurveTo(25,6,25,6,25,6);171ctx.bezierCurveTo(25,6,24,6,24,6);172ctx.bezierCurveTo(24,6,24,6,24,6);173ctx.bezierCurveTo(24,6,24,6,24,6);174ctx.lineTo(24,6);175ctx.lineTo(28,13);176ctx.lineTo(25,13);177ctx.lineTo(22,7);178ctx.bezierCurveTo(22,7,22,7,22,7);179ctx.bezierCurveTo(22,7,22,7,22,7);180ctx.bezierCurveTo(22,7,21,7,22,8);181ctx.bezierCurveTo(22,8,22,8,22,8);182ctx.lineTo(22,8);183ctx.lineTo(24,13);184ctx.lineTo(22,13);185ctx.lineTo(20,8);186ctx.bezierCurveTo(20,8,20,8,20,8);187ctx.bezierCurveTo(20,8,19,8,19,8);188ctx.bezierCurveTo(19,9,19,9,19,9);189ctx.bezierCurveTo(19,9,19,9,19,9);190ctx.lineTo(19,9);191ctx.lineTo(21,13);192ctx.lineTo(19,13);193ctx.lineTo(17,10);194ctx.bezierCurveTo(17,10,17,10,17,10);195ctx.bezierCurveTo(17,10,17,9,17,10);196ctx.bezierCurveTo(17,10,16,10,17,10);197ctx.bezierCurveTo(17,10,17,10,17,10);198ctx.lineTo(17,10);199ctx.lineTo(18,12);200ctx.lineTo(6,12);201ctx.lineTo(6,13);202ctx.lineTo(6,13);203ctx.fill();204ctx.fillStyle='#F7C06A';205ctx.beginPath();206ctx.moveTo(5,15);207ctx.bezierCurveTo(5,14,6,14,6,14);208ctx.lineTo(35,14);209ctx.bezierCurveTo(36,14,36,14,36,15);210ctx.lineTo(32,31);211ctx.bezierCurveTo(32,32,31,32,30,32);212ctx.lineTo(1,32);213ctx.bezierCurveTo(1,32,0,32,0,31);214ctx.lineTo(5,15);215ctx.lineTo(5,15);216ctx.fill();217ctx.fillStyle='#AEB1B2';218ctx.beginPath();219ctx.moveTo(32,13);220ctx.lineTo(6,13);221ctx.lineTo(6,14);222ctx.lineTo(32,14);223ctx.lineTo(32,13);224ctx.fill();...
Using AI Code Generation
1wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);2wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);3wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);4wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);5wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);6wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);7wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);8wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);9wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);10wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);11wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);12wpt.bezierCurveTo(100, 100, 100, 100, 100, 100);
Using AI Code Generation
1 build();2driver.findElement(webdriver.By.id('myCanvas')).then(function(canvas) {3 driver.executeScript(4 'arguments[0].getContext("2d").bezierCurveTo(75,37,70,25,50,25);',5 );6});7driver.quit();
Using AI Code Generation
1var wptk = require('wptoolkit');2var canvas = new wptk.Canvas(200, 200);3var ctx = canvas.getContext('2d');4ctx.beginPath();5ctx.bezierCurveTo(75, 37, 70, 25, 50, 25);6ctx.bezierCurveTo(20, 25, 20, 62.5, 20, 62.5);7ctx.bezierCurveTo(20, 80, 40, 102, 75, 120);8ctx.bezierCurveTo(110, 102, 130, 80, 130, 62.5);9ctx.bezierCurveTo(130, 62.5, 130, 25, 100, 25);10ctx.bezierCurveTo(85, 25, 75, 37, 75, 40);11ctx.fill();12canvas.toFile('test.png');13var wptk = require('wptoolkit');14var canvas = new wptk.Canvas(200, 200);15var ctx = canvas.getContext('2d');16ctx.beginPath();17ctx.moveTo(75, 40);18ctx.bezierCurveTo(75, 37, 70, 25, 50, 25);19ctx.bezierCurveTo(20, 25, 20, 62.5, 20, 62.5);20ctx.bezierCurveTo(20, 80, 40, 102, 75, 120);21ctx.bezierCurveTo(110, 102, 130, 80, 130, 62.5);22ctx.bezierCurveTo(130, 62.5, 130, 25, 100, 25);23ctx.bezierCurveTo(85, 25, 75, 37, 75, 40);24ctx.fill();25canvas.toFile('tes
Using AI Code Generation
1var canvas = document.createElement('canvas');2var ctx = canvas.getContext('2d');3var x = 0;4var y = 0;5ctx.moveTo(x,y);6ctx.bezierCurveTo(0,0,0,0,0,0);7ctx.stroke();
Using AI Code Generation
1var context = wpt.getContext('2d');2context.beginPath();3context.moveTo(10, 10);4context.bezierCurveTo(100, 100, 10, 10, 100, 100);5context.stroke();6<canvas id="canvas" width="100" height="100" style="border:1px solid #d3d3d3;">7I am using the following code to draw a bezier curve in a canvas. I am using the bezierCurveTo() method of the context of the canvas. I am using the following code to draw a
Using AI Code Generation
1var wptext = new WPText();2wptext.bezierCurveTo(100, 100, 100, 100, 100, 100);3var wptext = new WPText();4wptext.bezierCurveTo(100, 100, 100, 100, 100, 100);5var wptext = new WPText();6wptext.bezierCurveTo(100, 100, 100, 100, 100, 100);7var wptext = new WPText();8wptext.bezierCurveTo(100, 100, 100, 100, 100, 100);9var wptext = new WPText();10wptext.bezierCurveTo(100, 100, 100, 100, 100, 100);11var wptext = new WPText();12wptext.bezierCurveTo(100, 100, 100, 100, 100, 100);13var wptext = new WPText();14wptext.bezierCurveTo(100, 100, 100, 100, 100, 100);15var wptext = new WPText();16wptext.bezierCurveTo(100, 100, 100, 100, 100, 100);17var wptext = new WPText();18wptext.bezierCurveTo(100, 100, 100, 100, 100, 100);19var wptext = new WPText();
Using AI Code Generation
1var wptools = require('wptools');2var doc = new PDFDocument();3doc.pipe(fs.createWriteStream('output.pdf'));4doc.addPage();5doc.lineWidth(25);6doc.moveTo(100, 150);7doc.lineTo(500, 150);8doc.bezierCurveTo(100, 200, 500, 200, 100, 250);9doc.stroke();10doc.end();11var wptools = require('wptools');12var doc = new PDFDocument();13doc.pipe(fs.createWriteStream('output.pdf'));14doc.addPage();15doc.lineWidth(25);16doc.moveTo(100, 150);17doc.lineTo(500, 150);18doc.bezierCurveTo(100, 200, 500, 200, 100, 250);19doc.stroke();20doc.end();21var wptools = require('wptools');22var doc = new PDFDocument();23doc.pipe(fs.createWriteStream('output.pdf'));24doc.addPage();25doc.lineWidth(25);26doc.moveTo(100, 150);27doc.lineTo(500, 150);28doc.bezierCurveTo(100, 200, 500, 200, 100, 250);29doc.stroke();
Using AI Code Generation
1var text = new WPText();2text.fillColor = "black";3text.font = "Times New Roman";4text.fontSize = 20;5text.bezierCurveTo(100, 100, 200, 100, 200, 200);6text.bezierCurveTo(200, 100, 300, 100, 300, 200);7text.bezierCurveTo(300, 100, 400, 100, 400, 200);8text.bezierCurveTo(400, 100, 500, 100, 500, 200);9text.bezierCurveTo(500, 100, 600, 100, 600, 200);10text.bezierCurveTo(600, 100, 700, 100, 700, 200);11text.bezierCurveTo(700, 100, 800, 100, 800, 200);12text.bezierCurveTo(800, 100, 900, 100, 900, 200);13text.bezierCurveTo(900, 100, 1000, 100, 1000, 200);14text.bezierCurveTo(1000, 100, 1100, 100, 1100, 200);15text.bezierCurveTo(1100, 100, 1200, 100, 1200, 200);16text.bezierCurveTo(1200, 100, 1300, 100, 1300, 200);17text.bezierCurveTo(1300, 100, 1400, 100, 1400, 200);18text.bezierCurveTo(1400, 100, 1500, 100, 1500, 200);19text.bezierCurveTo(1500, 100, 1600, 100, 1600, 200);20text.bezierCurveTo(1600, 100, 1700, 100, 1700, 200);21text.bezierCurveTo(1700, 100, 1800, 100, 1800, 200);22text.bezierCurveTo(1800, 100, 1900, 100, 1900, 200);23text.bezierCurveTo(1900, 100, 2000, 100, 2000, 200);
Using AI Code Generation
1var t = new Wptext();2t.text = "This is a curve";3t.fontSize = 30;4t.fontType = "Arial";5t.x = 100;6t.y = 100;7t.color = "red";8t.bezierCurveStart = {x: 100, y: 100};9t.bezierCurveEnd = {x: 200, y: 200};10t.bezierCurveControl1 = {x: 100, y: 200};11t.bezierCurveControl2 = {x: 200, y: 100};12t.draw();13t.drawBezierCurve();14t.drawBezierCurveControlPoints();15t.drawBezierCurveStartEndPoints();16t.drawBezierCurveControlPoints();17t.drawBezierCurve();18t.drawBezierCurveControlPoints();19t.drawBezierCurveStartEndPoints();20t.drawBezierCurveControlPoints();21t.drawBezierCurve();22t.drawBezierCurveControlPoints();23t.drawBezierCurveStartEndPoints();24t.drawBezierCurveControlPoints();25t.drawBezierCurve();26t.drawBezierCurveControlPoints();27t.drawBezierCurveStartEndPoints();28t.drawBezierCurveControlPoints();29t.drawBezierCurve();30t.drawBezierCurveControlPoints();31t.drawBezierCurveStartEndPoints();32t.drawBezierCurveControlPoints();
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!