| 1 |
% !TeX root = ./testing/test.tex |
| 2 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3 |
% |
| 4 |
% The tikzducks package |
| 5 |
% A package to bring rubber ducks into tikz |
| 6 |
% Maintained by samcarter |
| 7 |
% |
| 8 |
% Project repository and bug tracker: |
| 9 |
% https://github.com/samcarter/tikzducks |
| 10 |
% |
| 11 |
% Released under the LaTeX Project Public License v1.3c or later |
| 12 |
% See https://www.latex-project.org/lppl.txt |
| 13 |
% |
| 14 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 15 |
\ProvidesPackage{tikzducks}[2025/12/11 version v2.2 Draw rubber ducks in TikZ] |
| 16 |
|
| 17 |
\RequirePackage{tikz} |
| 18 |
\usetikzlibrary{patterns.meta} % for the wizard hat |
| 19 |
\usetikzlibrary{calc} % for the sports jerseys |
| 20 |
\usetikzlibrary{decorations.shapes} % for sombrero |
| 21 |
\usetikzlibrary{decorations.pathmorphing} |
| 22 |
|
| 23 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 24 |
% |
| 25 |
% misc helper code |
| 26 |
% |
| 27 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 28 |
|
| 29 |
% colour for the overleaf duck |
| 30 |
\definecolor{duck@overleafcol}{RGB}{72,172,60} |
| 31 |
|
| 32 |
% using a random seed, e.g. for randuck |
| 33 |
\ExplSyntaxOn |
| 34 |
\ifdefined\sys_rand_seed: |
| 35 |
\pgfmathsetseed{\sys_rand_seed:} |
| 36 |
\else |
| 37 |
\ifdefined\pdfrandomseed % pdflatex |
| 38 |
\else |
| 39 |
\ifdefined\randomseed |
| 40 |
\let\pdfrandomseed\randomseed % post TL19 xelatex and lualatex |
| 41 |
\else |
| 42 |
\let\pdfrandomseed\time % pre TL19 xelatex |
| 43 |
\fi |
| 44 |
\fi |
| 45 |
\pgfmathsetseed{\number\pdfrandomseed} |
| 46 |
\fi |
| 47 |
\ExplSyntaxOff |
| 48 |
|
| 49 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 50 |
% |
| 51 |
% Options |
| 52 |
% |
| 53 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 54 |
|
| 55 |
% for randomhead and randomaccessoires |
| 56 |
\def\duck@listhead{} |
| 57 |
\def\duck@listacces{} |
| 58 |
|
| 59 |
\ExplSyntaxOn |
| 60 |
% based on https://topanswers.xyz/tex?q=8082#a7698 |
| 61 |
\NewDocumentCommand{\duck@ini}{om}{ |
| 62 |
\expandafter\newif\csname ifduck@#2\endcsname |
| 63 |
\IfValueT{#1}{ |
| 64 |
\tl_put_right:cn { duck@list#1 } { {#2} } |
| 65 |
} |
| 66 |
} |
| 67 |
\ExplSyntaxOff |
| 68 |
|
| 69 |
\duck@ini{name} |
| 70 |
\duck@ini{invisible} |
| 71 |
% Environment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 72 |
\duck@ini{water} |
| 73 |
% body parts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 74 |
\duck@ini{grumpy} |
| 75 |
\duck@ini{laughing} |
| 76 |
\duck@ini{parrot} |
| 77 |
% hair styles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 78 |
\duck@ini[head]{shorthair} |
| 79 |
\duck@ini[head]{longhair} |
| 80 |
\duck@ini[head]{crazyhair} |
| 81 |
\duck@ini[head]{recedinghair} |
| 82 |
\duck@ini{eyebrow} |
| 83 |
\duck@ini[head]{beard} |
| 84 |
\duck@ini[head]{mohican} |
| 85 |
\duck@ini[head]{mullet} |
| 86 |
\duck@ini[head]{parting} |
| 87 |
% clothing %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 88 |
\duck@ini{clothing} |
| 89 |
\duck@ini{tshirt} |
| 90 |
\duck@ini{jacket} |
| 91 |
\duck@ini{tie} |
| 92 |
\duck@ini[acces]{cape} |
| 93 |
\duck@ini{stripes} |
| 94 |
\duck@ini[acces]{bowtie} |
| 95 |
\duck@ini{lapel} |
| 96 |
\duck@ini{aodai} |
| 97 |
\duck@ini[acces]{scarf} |
| 98 |
% Headgear %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 99 |
\duck@ini[head]{alien} |
| 100 |
\duck@ini[head]{hat} |
| 101 |
\duck@ini[head]{cap} |
| 102 |
\duck@ini[head]{santa} |
| 103 |
\duck@ini{unicorn} |
| 104 |
\duck@ini[head]{magichat} |
| 105 |
\duck@ini[head]{chef} |
| 106 |
\duck@ini[head]{witch} |
| 107 |
\duck@ini[head]{graduate} |
| 108 |
\duck@ini[head]{beret} |
| 109 |
\duck@ini[head]{crown} |
| 110 |
\duck@ini[head]{queencrown} |
| 111 |
\duck@ini[head]{kingcrown} |
| 112 |
\duck@ini[head]{peakedcap} |
| 113 |
\duck@ini[head]{bunny} |
| 114 |
\duck@ini[head]{tophat} |
| 115 |
\duck@ini[head]{darthvader} |
| 116 |
\duck@ini[head]{harlequin} |
| 117 |
\duck@ini[head]{strawhat} |
| 118 |
\duck@ini[head]{helmet} |
| 119 |
\duck@ini[head]{viking} |
| 120 |
\duck@ini[head]{devil} |
| 121 |
\duck@ini[head]{conicalhat} |
| 122 |
\duck@ini[head]{sailor} |
| 123 |
\duck@ini[head]{bobblehat} |
| 124 |
\duck@ini[head]{sombrero} |
| 125 |
% Accessories %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 126 |
\duck@ini[acces]{glasses} |
| 127 |
\duck@ini[acces]{sunglasses} |
| 128 |
\duck@ini[acces]{squareglasses} |
| 129 |
\duck@ini[acces]{icecream} |
| 130 |
\duck@ini[acces]{book} |
| 131 |
\duck@ini[acces]{magicwand} |
| 132 |
\duck@ini[acces]{cricket} |
| 133 |
\duck@ini[acces]{rollingpin} |
| 134 |
\duck@ini[acces]{signpost} |
| 135 |
\duck@ini[acces]{lightsaber} |
| 136 |
\duck@ini[acces]{cake} |
| 137 |
\duck@ini[acces]{pizza} |
| 138 |
\duck@ini[acces]{hockey} |
| 139 |
\duck@ini[acces]{baguette} |
| 140 |
\duck@ini[acces]{football} |
| 141 |
\duck@ini[acces]{mask} |
| 142 |
\duck@ini[acces]{necklace} |
| 143 |
\duck@ini[acces]{milkshake} |
| 144 |
\duck@ini[acces]{wine} |
| 145 |
\duck@ini[acces]{prison} |
| 146 |
\duck@ini{speech} |
| 147 |
\duck@ini{think} |
| 148 |
\duck@ini[acces]{torch} |
| 149 |
\duck@ini[acces]{easter} |
| 150 |
\duck@ini[acces]{basket} |
| 151 |
\duck@ini{buttons} |
| 152 |
\duck@ini{sheep} |
| 153 |
\duck@ini{horsetail} |
| 154 |
\duck@ini[acces]{crozier} |
| 155 |
\duck@ini{davidlikespineapplepizza} |
| 156 |
\duck@ini{wing} |
| 157 |
\duck@ini[acces]{stethoscope} |
| 158 |
\duck@ini[acces]{neckerchief} |
| 159 |
\duck@ini{snowduck} |
| 160 |
\duck@ini{vampire} |
| 161 |
\duck@ini[acces]{crystalball} |
| 162 |
\duck@ini[acces]{cheese} |
| 163 |
\duck@ini[acces]{shovel} |
| 164 |
\duck@ini[acces]{pickaxe} |
| 165 |
\duck@ini[acces]{strawbroom} |
| 166 |
\duck@ini[acces]{broom} |
| 167 |
\duck@ini[acces]{umbrella} |
| 168 |
\duck@ini[acces]{umbrellaclosed} |
| 169 |
\duck@ini[acces]{handbag} |
| 170 |
\duck@ini[acces]{cocktail} |
| 171 |
\duck@ini{overleaf} |
| 172 |
\duck@ini[acces]{banana} |
| 173 |
\duck@ini[acces]{stick} |
| 174 |
\duck@ini{megaphone} |
| 175 |
\duck@ini[acces]{towel} |
| 176 |
\duck@ini[acces]{present} |
| 177 |
|
| 178 |
\tikzset{ |
| 179 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 180 |
% |
| 181 |
% Pass unknown keys on to tikz |
| 182 |
% |
| 183 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 184 |
/duck/.search also={/tikz,/pgf}, |
| 185 |
/duck/.cd, |
| 186 |
name/.code = \duck@nametrue |
| 187 |
\def\duck@name{#1}, |
| 188 |
invisible/.code = \duck@invisibletrue, |
| 189 |
randomhead/.code = \shuffleducks, |
| 190 |
randomhead/.forward to = /duck/\randomhead, |
| 191 |
randomaccessories/.code = \shuffleducks, |
| 192 |
randomaccessories/.forward to = /duck/\randomaccessories, |
| 193 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 194 |
% |
| 195 |
% Environment |
| 196 |
% |
| 197 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 198 |
water/.code = \duck@watertrue |
| 199 |
\def\duck@water{#1}, |
| 200 |
water/.default = blue, |
| 201 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 202 |
% |
| 203 |
% body parts |
| 204 |
% |
| 205 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 206 |
body/.code = \def\duck@body{#1}, |
| 207 |
body = yellow!70!brown, |
| 208 |
head/.code = \def\duck@head{#1}, |
| 209 |
eye/.code = \def\duck@eye{#1}, |
| 210 |
eye = white!85!yellow, |
| 211 |
pupil/.code = \def\duck@pupil{#1}, |
| 212 |
pupil = black, |
| 213 |
bill/.code = \def\duck@bill{#1}, |
| 214 |
bill = orange!50!brown, |
| 215 |
grumpy/.code = \duck@grumpytrue, |
| 216 |
laughing/.code = \duck@laughingtrue, |
| 217 |
parrot/.code = \duck@parrottrue, |
| 218 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 219 |
% |
| 220 |
% clothing |
| 221 |
% |
| 222 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 223 |
tshirt/.code = \duck@tshirttrue |
| 224 |
\duck@clothingtrue |
| 225 |
\def\duck@tshirt{#1}, |
| 226 |
tshirt/.default = white, |
| 227 |
jacket/.code = \duck@jackettrue |
| 228 |
\duck@clothingtrue |
| 229 |
\def\duck@jacket{#1}, |
| 230 |
jacket/.default = blue, |
| 231 |
tie/.code = \duck@tietrue |
| 232 |
\def\duck@tie{#1}, |
| 233 |
tie/.default = blue, |
| 234 |
cape/.code = \duck@capetrue |
| 235 |
\duck@clothingtrue |
| 236 |
\def\duck@cape{#1}, |
| 237 |
cape/.default = red, |
| 238 |
stripes/.code = \duck@stripestrue |
| 239 |
\duck@clothingtrue |
| 240 |
\def\duck@stripes{#1}, |
| 241 |
stripes/.default = \stripes , |
| 242 |
bowtie/.code = \duck@bowtietrue |
| 243 |
\def\duck@bowtie{#1}, |
| 244 |
bow tie/.forward to = /duck/bowtie, |
| 245 |
bowtie/.default = black, |
| 246 |
lapel/.code = \duck@lapeltrue |
| 247 |
\def\duck@lapel{#1}, |
| 248 |
lapel/.default = black, |
| 249 |
aodai/.code = \duck@aodaitrue |
| 250 |
\duck@clothingtrue |
| 251 |
\def\duck@aodai{#1}, |
| 252 |
ao dai/.forward to = /duck/aodai, |
| 253 |
aodai/.default = blue!50!black, |
| 254 |
scarf/.code = \duck@scarftrue |
| 255 |
\def\duck@scarf{#1}, |
| 256 |
scarf/.default = red!70!black, |
| 257 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 258 |
% |
| 259 |
% hair styles |
| 260 |
% |
| 261 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 262 |
shorthair/.code = \duck@shorthairtrue |
| 263 |
\def\duck@hair{#1}, |
| 264 |
short hair/.forward to = /duck/shorthair, |
| 265 |
shorthair/.default = brown, |
| 266 |
longhair/.code = \duck@longhairtrue |
| 267 |
\def\duck@hair{#1}, |
| 268 |
long hair/.forward to = /duck/longhair, |
| 269 |
longhair/.default = brown, |
| 270 |
crazyhair/.code = \duck@crazyhairtrue |
| 271 |
\def\duck@hair{#1}, |
| 272 |
crazy hair/.forward to = /duck/crazyhair, |
| 273 |
crazyhair/.default = brown, |
| 274 |
recedinghair/.code = \duck@recedinghairtrue |
| 275 |
\def\duck@hair{#1}, |
| 276 |
receding hair/.forward to = /duck/recedinghair, |
| 277 |
recedinghair/.default = brown, |
| 278 |
eyebrow/.code = \duck@eyebrowtrue |
| 279 |
\def\duck@eyebrow{#1}, |
| 280 |
eyebrow/.default = brown, |
| 281 |
beard/.code = \duck@beardtrue |
| 282 |
\def\duck@beard{#1}, |
| 283 |
beard/.default = brown, |
| 284 |
mohican/.code = \duck@mohicantrue |
| 285 |
\def\duck@hair{#1}, |
| 286 |
mohican/.default = brown, |
| 287 |
mullet/.code = \duck@mullettrue |
| 288 |
\def\duck@hair{#1}, |
| 289 |
mullet/.default = brown, |
| 290 |
parting/.code = \duck@partingtrue |
| 291 |
\def\duck@hair{#1}, |
| 292 |
parting/.default = brown, |
| 293 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 294 |
% |
| 295 |
% Headgear |
| 296 |
% |
| 297 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 298 |
alien/.code = \duck@alientrue |
| 299 |
\def\duck@alien{#1}, |
| 300 |
alien/.default = green, |
| 301 |
hat/.code = \duck@hattrue |
| 302 |
\def\duck@hat{#1}, |
| 303 |
hat/.default = brown, |
| 304 |
cap/.code = \duck@captrue |
| 305 |
\def\duck@cap{#1}, |
| 306 |
cap/.default = blue, |
| 307 |
santa/.code = \duck@santatrue |
| 308 |
\def\duck@santa{#1}, |
| 309 |
santa/.default = red!80!black, |
| 310 |
chef/.code = \duck@cheftrue |
| 311 |
\def\duck@chef{#1}, |
| 312 |
chef/.default = gray!20!white, |
| 313 |
graduate/.code = \duck@graduatetrue |
| 314 |
\def\duck@graduate{#1}, |
| 315 |
graduate/.default = black, |
| 316 |
tassel/.code = \def\duck@tassel{#1}, |
| 317 |
tassel = red, |
| 318 |
beret/.code = \duck@berettrue |
| 319 |
\def\duck@beret{#1}, |
| 320 |
beret/.default = black, |
| 321 |
unicorn/.code = \duck@unicorntrue |
| 322 |
\def\duck@unicorn{#1}, |
| 323 |
unicorn/.default = pink, |
| 324 |
magichat/.code = \duck@magichattrue |
| 325 |
\def\duck@magichat{#1}, |
| 326 |
magic hat/.forward to = /duck/magichat, |
| 327 |
magichat/.default = violet, |
| 328 |
magicstars/.code = \def\duck@magicstars{#1}, |
| 329 |
magic stars/.forward to = /duck/magicstars, |
| 330 |
magicstars = yellow!80!brown, |
| 331 |
witch/.code = \duck@witchtrue |
| 332 |
\def\duck@witch{#1}, |
| 333 |
witch/.default = black, |
| 334 |
crown/.code = \duck@crowntrue |
| 335 |
\def\duck@crown{#1}, |
| 336 |
crown/.default = yellow, |
| 337 |
queencrown/.code = \duck@queencrowntrue |
| 338 |
\def\duck@queencrown{#1}, |
| 339 |
queen crown/.forward to = /duck/queencrown, |
| 340 |
queencrown/.default = yellow, |
| 341 |
kingcrown/.code = \duck@kingcrowntrue |
| 342 |
\def\duck@kingcrown{#1}, |
| 343 |
king crown/.forward to = /duck/kingcrown, |
| 344 |
kingcrown/.default = gray, |
| 345 |
bunny/.code = \duck@bunnytrue |
| 346 |
\def\duck@bunny{#1}, |
| 347 |
bunny/.default = \duck@body, |
| 348 |
inear/.code = \def\duck@inear{#1}, |
| 349 |
in ear/.forward to = /duck/inear, |
| 350 |
inear = \duck@bunny!50!white, |
| 351 |
peakedcap/.code = \duck@peakedcaptrue |
| 352 |
\def\duck@peakedcap{#1}, |
| 353 |
peaked cap/.forward to = /duck/peakedcap, |
| 354 |
peakedcap/.default = blue, |
| 355 |
tophat/.code = \duck@tophattrue |
| 356 |
\def\duck@tophat{#1}, |
| 357 |
top hat/.forward to = /duck/tophat, |
| 358 |
tophat/.default = black, |
| 359 |
darthvader/.code = \duck@darthvadertrue |
| 360 |
\def\duck@darthvader{#1}, |
| 361 |
darth vader/.forward to = /duck/darthvader, |
| 362 |
darthvader/.default = black, |
| 363 |
harlequin/.code = \duck@harlequintrue |
| 364 |
\def\duck@harlequin{#1}, |
| 365 |
harlequin/.default = blue, |
| 366 |
niuqelrah/.code = \def\duck@niuqelrah{#1}, |
| 367 |
niuqelrah = red, |
| 368 |
strawhat/.code = \duck@strawhattrue |
| 369 |
\def\duck@strawhat{#1}, |
| 370 |
straw hat/.forward to = /duck/strawhat, |
| 371 |
strawhat/.default = gray!30!white, |
| 372 |
ribbon/.code = \def\duck@ribbon{#1}, |
| 373 |
ribbon = black, |
| 374 |
helmet/.code = \duck@helmettrue |
| 375 |
\def\duck@helmet{#1}, |
| 376 |
helmet/.default = gray, |
| 377 |
devil/.code = \duck@deviltrue |
| 378 |
\def\duck@devil{#1}, |
| 379 |
devil/.default = red, |
| 380 |
viking/.code = \duck@vikingtrue |
| 381 |
\def\duck@viking{#1} |
| 382 |
\duck@deviltrue |
| 383 |
\def\duck@devil{brown!20!white}, |
| 384 |
viking/.default = gray, |
| 385 |
conicalhat/.code = \duck@conicalhattrue |
| 386 |
\def\duck@conicalhat{#1}, |
| 387 |
conical hat/.forward to = /duck/conicalhat, |
| 388 |
conicalhat/.default = brown!90!orange!90!white, |
| 389 |
sailor/.code = \duck@sailortrue |
| 390 |
\def\duck@sailor{#1}, |
| 391 |
sailor/.default = white!80!gray, |
| 392 |
bobblehat/.code = \duck@bobblehattrue |
| 393 |
\def\duck@bobblehat{#1}, |
| 394 |
bobble hat/.forward to = /duck/bobblehat, |
| 395 |
bobblehat/.default = red!70!black, |
| 396 |
sombrero/.code = \duck@sombrerotrue |
| 397 |
\def\duck@sombrero{#1}, |
| 398 |
sombrero/.default = orange!70!yellow, |
| 399 |
sombreroa/.code = \def\duck@sombreroa{#1}, |
| 400 |
sombreroa = green!70!blue, |
| 401 |
sombrerob/.code = \def\duck@sombrerob{#1}, |
| 402 |
sombrerob = red, |
| 403 |
sombreroc/.code = \def\duck@sombreroc{#1}, |
| 404 |
sombreroc = blue, |
| 405 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 406 |
% |
| 407 |
% Accessories |
| 408 |
% |
| 409 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 410 |
glasses/.code = \duck@glassestrue |
| 411 |
\def\duck@glasses{#1}, |
| 412 |
glasses/.default = black, |
| 413 |
sunglasses/.code = \duck@sunglassestrue |
| 414 |
\def\duck@sunglasses{#1}, |
| 415 |
sunglasses/.default = black, |
| 416 |
squareglasses/.code = \duck@squareglassestrue |
| 417 |
\def\duck@squareglasses{#1}, |
| 418 |
square glasses/.forward to = /duck/squareglasses, |
| 419 |
squareglasses/.default = black, |
| 420 |
icecream/.code = \duck@icecreamtrue |
| 421 |
\def\duck@cone{#1}, |
| 422 |
ice cream/.forward to = /duck/icecream, |
| 423 |
icecream/.default = brown!60!gray, |
| 424 |
flavoura/.code = \def\duck@flavoura{#1}, |
| 425 |
flavour a/.forward to = /duck/flavoura, |
| 426 |
flavoura = brown!50!black, |
| 427 |
flavourb/.code = \def\duck@flavourb{#1}, |
| 428 |
flavour b/.forward to = /duck/flavourb, |
| 429 |
flavourb = white!70!brown, |
| 430 |
flavourc/.code = \def\duck@flavourc{#1}, |
| 431 |
flavour c/.forward to = /duck/flavourc, |
| 432 |
flavourc = red!50!white, |
| 433 |
book/.code = \duck@booktrue |
| 434 |
\def\duck@book{#1}, |
| 435 |
bookcolour/.code = \def\duck@bookcolour{#1}, |
| 436 |
book colour/.forward to = /duck/bookcolour, |
| 437 |
book color/.forward to = /duck/bookcolour, |
| 438 |
bookcolor/.forward to = /duck/bookcolour, |
| 439 |
bookcolour = brown, |
| 440 |
signpost/.code = \duck@signposttrue |
| 441 |
\def\duck@signpost{#1}, |
| 442 |
sign post/.forward to = /duck/signpost, |
| 443 |
signcolour/.code = \def\duck@signcolour{#1}, |
| 444 |
sign colour/.forward to = /duck/signcolour, |
| 445 |
sign color/.forward to = /duck/signcolour, |
| 446 |
signcolor/.forward to = /duck/signcolour, |
| 447 |
signcolour = brown!50!black, |
| 448 |
signback/.code = \def\duck@signback{#1}, |
| 449 |
sign back/.forward to = /duck/signback, |
| 450 |
signback = green!40!black, |
| 451 |
magicwand/.code = \duck@magicwandtrue, |
| 452 |
magic want/.forward to = /duck/magicwand, |
| 453 |
cricket/.code = \duck@crickettrue |
| 454 |
\def\duck@cricket{#1}, |
| 455 |
cricket/.default = brown, |
| 456 |
rollingpin/.code = \duck@rollingpintrue |
| 457 |
\def\duck@rollingpin{#1}, |
| 458 |
rolling pin/.forward to = /duck/rollingpin, |
| 459 |
rollingpin/.default = brown, |
| 460 |
lightsaber/.code = \duck@lightsabertrue |
| 461 |
\def\duck@lightsaber{#1}, |
| 462 |
light saber/.forward to = /duck/lightsaber, |
| 463 |
lightsaber/.default = green, |
| 464 |
cake/.code = \duck@caketrue |
| 465 |
\def\duck@cake{#1}, |
| 466 |
cake/.default = violet, |
| 467 |
pizza/.code = \duck@pizzatrue, |
| 468 |
hockey/.code = \duck@hockeytrue |
| 469 |
\def\duck@hockey{#1}, |
| 470 |
hockey/.default = brown, |
| 471 |
baguette/.code = \duck@baguettetrue |
| 472 |
\def\duck@baguette{#1}, |
| 473 |
baguette/.default = brown, |
| 474 |
football/.code = \duck@footballtrue |
| 475 |
\def\duck@football{#1}, |
| 476 |
football/.default = white, |
| 477 |
mask/.code = \duck@masktrue |
| 478 |
\def\duck@mask{#1}, |
| 479 |
mask/.default = black, |
| 480 |
necklace/.code = \duck@necklacetrue |
| 481 |
\def\duck@necklace{#1}, |
| 482 |
necklace/.default = white!80!gray, |
| 483 |
milkshake/.code = \duck@milkshaketrue |
| 484 |
\def\duck@milkshake{#1}, |
| 485 |
milkshake/.default = red!20!white, |
| 486 |
wine/.code = \duck@winetrue |
| 487 |
\def\duck@wine{#1}, |
| 488 |
wine/.default = red!70!black, |
| 489 |
prison/.code = \duck@prisontrue |
| 490 |
\def\duck@prison{#1}, |
| 491 |
prison/.default = gray, |
| 492 |
speech/.code = \duck@speechtrue |
| 493 |
\def\duck@speech{#1}, |
| 494 |
think/.code = \duck@thinktrue |
| 495 |
\def\duck@think{#1}, |
| 496 |
bubblecolour/.code = \def\duck@bubblecolour{#1}, |
| 497 |
bubble colour/.forward to = /duck/bubblecolour, |
| 498 |
bubble color/.forward to = /duck/bubblecolour, |
| 499 |
bubblecolor/.forward to = /duck/bubblecolour, |
| 500 |
bubblecolour = gray!30!white, |
| 501 |
torch/.code = \duck@torchtrue |
| 502 |
\def\duck@torch{#1}, |
| 503 |
torch/.default = gray, |
| 504 |
basket/.code = \duck@baskettrue |
| 505 |
\def\duck@basket{#1}, |
| 506 |
basket/.default = brown!70!gray, |
| 507 |
easter/.code = \duck@eastertrue |
| 508 |
\duck@baskettrue |
| 509 |
\def\duck@basket{#1}, |
| 510 |
easter/.default = brown!70!gray, |
| 511 |
egga/.code = \def\duck@egga{#1}, |
| 512 |
egg a/.forward to = /duck/egga, |
| 513 |
egga = blue, |
| 514 |
eggb/.code = \def\duck@eggb{#1}, |
| 515 |
egg b/.forward to = /duck/eggb, |
| 516 |
eggb = green, |
| 517 |
eggc/.code = \def\duck@eggc{#1}, |
| 518 |
egg c/.forward to = /duck/eggc, |
| 519 |
eggc = red, |
| 520 |
buttons/.code = \duck@buttonstrue |
| 521 |
\def\duck@buttons{#1}, |
| 522 |
buttons/.default = black, |
| 523 |
sheep/.code = \duck@sheeptrue |
| 524 |
\def\duck@sheep{#1}, |
| 525 |
sheep/.default = \duck@body, |
| 526 |
horsetail/.code = \duck@horsetailtrue |
| 527 |
\def\duck@horsetail{#1}, |
| 528 |
horsetail/.default = brown, |
| 529 |
crozier/.code = \duck@croziertrue |
| 530 |
\def\duck@crozier{#1}, |
| 531 |
crozier/.default = brown, |
| 532 |
davidlikespineapplepizza/.code = \duck@davidlikespineapplepizzatrue |
| 533 |
\duck@speechtrue |
| 534 |
\def\duck@speech{\scalebox{\scalingfactor}{\scalebox{0.9}{\tiny ih, che schifo!}}}, |
| 535 |
david likes pineapple pizza/.forward to = /duck/davidlikespineapplepizza, |
| 536 |
wing/.code = \duck@wingtrue |
| 537 |
\def\duck@wing{#1}, |
| 538 |
wing/.default = yellow!50!brown, |
| 539 |
stethoscope/.code = \duck@stethoscopetrue |
| 540 |
\def\duck@stethoscope{#1}, |
| 541 |
stethoscope/.default = gray, |
| 542 |
neckerchief/.code = \duck@neckerchieftrue |
| 543 |
\def\duck@neckerchief{#1}, |
| 544 |
neckerchief/.default = brown, |
| 545 |
woggle/.code = \def\duck@woggle{#1}, |
| 546 |
woggle = brown!50!black, |
| 547 |
snowduck/.code = \duck@snowducktrue |
| 548 |
\def\duck@snowduck{#1} |
| 549 |
\def\duck@eye{#1} |
| 550 |
\def\duck@body{#1} |
| 551 |
\duck@tophattrue |
| 552 |
\def\duck@tophat{black} |
| 553 |
\duck@buttonstrue |
| 554 |
\def\duck@buttons{black}, |
| 555 |
snow duck/.forward to = /duck/snowduck, |
| 556 |
snowduck/.default = gray!15!white, |
| 557 |
vampire/.code = \duck@vampiretrue |
| 558 |
\def\duck@vampire{#1}, |
| 559 |
vampire/.default = white!85!yellow, |
| 560 |
crystalball/.code = \duck@crystalballtrue |
| 561 |
\def\duck@crystalball{#1}, |
| 562 |
crystal ball/.forward to = /duck/crystalball, |
| 563 |
crystalball/.default = cyan, |
| 564 |
cheese/.code = \duck@cheesetrue |
| 565 |
\def\duck@cheese{#1}, |
| 566 |
cheese/.default = orange, |
| 567 |
shovel/.code = \duck@shoveltrue |
| 568 |
\def\duck@shovel{#1}, |
| 569 |
shovel/.default = gray, |
| 570 |
pickaxe/.code = \duck@pickaxetrue |
| 571 |
\def\duck@pickaxe{#1}, |
| 572 |
pickaxe/.default = gray, |
| 573 |
strawbroom/.code = \duck@strawbroomtrue |
| 574 |
\def\duck@strawbroom{#1}, |
| 575 |
strawbroom/.default = brown!50!white, |
| 576 |
strawbroomstick/.code = \def\duck@strawbroomstick{#1}, |
| 577 |
strawbroomstick = brown, |
| 578 |
strawbroomribbon/.code = \def\duck@strawbroomribbon{#1}, |
| 579 |
strawbroomribbon = red!50!black, |
| 580 |
broom/.code = \duck@broomtrue |
| 581 |
\def\duck@broom{#1}, |
| 582 |
broom/.default = brown, |
| 583 |
broomstick/.code = \def\duck@broomstick{#1}, |
| 584 |
broomstick = gray!50!black, |
| 585 |
umbrella/.code = \duck@umbrellatrue |
| 586 |
\def\duck@umbrella{#1}, |
| 587 |
umbrella/.default = cyan, |
| 588 |
umbrellaclosed/.code = \duck@umbrellaclosedtrue |
| 589 |
\def\duck@umbrellaclosed{#1}, |
| 590 |
umbrellaclosed/.default = cyan, |
| 591 |
umbrella closed/.forward to = /duck/umbrellaclosed, |
| 592 |
handbag/.code = \duck@handbagtrue |
| 593 |
\def\duck@handbag{#1}, |
| 594 |
handbag/.default = red!70!black, |
| 595 |
cocktail/.code = \duck@cocktailtrue, |
| 596 |
overleaf/.code = \duck@overleaftrue |
| 597 |
\def\duck@body{duck@overleafcol} |
| 598 |
\duck@graduatetrue |
| 599 |
\def\duck@graduate{black} |
| 600 |
\duck@squareglassestrue |
| 601 |
\def\duck@squareglasses{black}, |
| 602 |
banana/.code = \duck@bananatrue |
| 603 |
\def\duck@banana{#1}, |
| 604 |
banana/.default = yellow!80!orange, |
| 605 |
stick/.code = \duck@sticktrue |
| 606 |
\def\duck@stick{#1}, |
| 607 |
stick/.default = red!60!green, |
| 608 |
leaf/.code = \def\duck@leaf{#1}, |
| 609 |
leaf = green!70!red, |
| 610 |
megaphone/.code = \duck@megaphonetrue |
| 611 |
\def\duck@megaphone{#1}, |
| 612 |
megaphone/.default = lightgray, |
| 613 |
towel/.code = \duck@toweltrue |
| 614 |
\def\duck@towel{#1}, |
| 615 |
towel/.default = violet, |
| 616 |
present/.code = \duck@presenttrue |
| 617 |
\def\duck@present{#1}, |
| 618 |
present/.default = violet, |
| 619 |
presenttop/.code = \def\duck@presenttop{#1}, |
| 620 |
presenttop = \duck@present!70, |
| 621 |
present top/.forward to = /duck/presenttop, |
| 622 |
presentbottom/.code = \def\duck@presentbottom{#1}, |
| 623 |
presentbottom = \duck@present!80, |
| 624 |
present bottom/.forward to = /duck/presentbottom, |
| 625 |
presentribbon/.code = \def\duck@presentribbon{#1}, |
| 626 |
presentribbon = \duck@present, |
| 627 |
present ribbon/.forward to = /duck/presentribbon, |
| 628 |
} |
| 629 |
|
| 630 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 631 |
% |
| 632 |
% Hooks |
| 633 |
% |
| 634 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 635 |
|
| 636 |
\NewHook{tikzducks/background} |
| 637 |
\NewHook{tikzducks/body} |
| 638 |
\NewHook{tikzducks/clothing} |
| 639 |
\NewHook{tikzducks/hair} |
| 640 |
\NewHook{tikzducks/hat} |
| 641 |
\NewHook{tikzducks/foreground} |
| 642 |
|
| 643 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 644 |
% |
| 645 |
% Duck |
| 646 |
% |
| 647 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 648 |
|
| 649 |
\newcommand*{\duck}[1][]{% |
| 650 |
\begin{scope}% |
| 651 |
\tikzset{/duck/.cd,#1}% |
| 652 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 653 |
% |
| 654 |
% minimal bounding box size |
| 655 |
% |
| 656 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 657 |
\ifduck@invisible |
| 658 |
\else |
| 659 |
\path (0.1,0.1) rectangle (2.1,2.12); |
| 660 |
\fi |
| 661 |
% |
| 662 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 663 |
% |
| 664 |
% defining some coordinates |
| 665 |
% |
| 666 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 667 |
\ifduck@name |
| 668 |
\coordinate (\duck@name-wing) at (0.8,0.7); |
| 669 |
\coordinate (\duck@name-head) at (0.9,2); |
| 670 |
\coordinate (\duck@name-bill) at (0.5,1.3); |
| 671 |
\coordinate (\duck@name-tail) at (1.82,1.41); |
| 672 |
\fi |
| 673 |
\coordinate (wing) at (0.8,0.7); |
| 674 |
\coordinate (head) at (0.9,2); |
| 675 |
\coordinate (bill) at (0.5,1.3); |
| 676 |
\coordinate (tail) at (1.82,1.41); |
| 677 |
% |
| 678 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 679 |
% |
| 680 |
% store the current scale factor |
| 681 |
% from https://github.com/samcarter/tikzlings/issues/3#issuecomment-461373494 |
| 682 |
% |
| 683 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 684 |
\pgfgettransformentries{\tmpscaleA}{\tmpscaleB}{\tmpscaleC}{\tmpscaleD}{\tmp}{\tmp}% |
| 685 |
\pgfmathsetmacro{\scalingfactor}{sqrt(abs(\tmpscaleA*\tmpscaleD-\tmpscaleB*\tmpscaleC))*sqrt(abs((\pgf@xx/1cm)*(\pgf@yy/1cm)-(\pgf@xy/1cm)*(\pgf@yx/1cm)))}% |
| 686 |
\pgfmathsetmacro{\xscalefactor}{\tmpscaleA} |
| 687 |
\pgfmathsetmacro{\yscalefactor}{\tmpscaleD} |
| 688 |
\pgfmathsetmacro{\decoscalefactor}{sign(\tmpscaleA)*sign(\tmpscaleD)*\scalingfactor}% |
| 689 |
% |
| 690 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 691 |
% |
| 692 |
% Environment |
| 693 |
% |
| 694 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 695 |
% |
| 696 |
% adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 697 |
\UseHook{tikzducks/background} |
| 698 |
\csname duckhookbackground\endcsname |
| 699 |
% |
| 700 |
% water %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 701 |
\ifduck@water |
| 702 |
\fill[\duck@water, even odd rule] (1.00,0.40) ellipse[x radius=0.88, y radius=0.35] (1.00,0.40) ellipse[x radius=0.75, y radius=0.25]; |
| 703 |
\fill[\duck@water, even odd rule] (1.00,0.40) ellipse[x radius=1.05, y radius=0.50] (1.00,0.40) ellipse[x radius=0.95, y radius=0.42]; |
| 704 |
\fill[\duck@water, even odd rule] (1.00,0.40) ellipse[x radius=1.23, y radius=0.63] (1.00,0.40) ellipse[x radius=1.17, y radius=0.57]; |
| 705 |
\fill[\duck@water, even odd rule] (1.00,0.40) ellipse[x radius=1.42, y radius=0.77] (1.00,0.40) ellipse[x radius=1.38, y radius=0.73]; |
| 706 |
\fi |
| 707 |
% |
| 708 |
% sheep %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 709 |
\ifduck@sheep |
| 710 |
\fill[\duck@sheep] (0.65,1.95) circle[radius=0.15] (0.50,1.75) circle[radius=0.15] (0.46,1.51) circle[radius=0.15] (0.37,1.00) circle[radius=0.15] (0.23,0.80) circle[radius=0.15] (0.20,0.60) circle[radius=0.15] (0.25,0.45) circle[radius=0.15] (0.35,0.30) circle[radius=0.15] (0.55,0.25) circle[radius=0.15] (0.75,0.20) circle[radius=0.15] (0.95,0.16) circle[radius=0.15] (1.15,0.20) circle[radius=0.15] (1.35,0.23) circle[radius=0.15] (1.55,0.30) circle[radius=0.15] (1.75,0.38) circle[radius=0.15] (1.95,0.50) circle[radius=0.15] (2.05,0.65) circle[radius=0.15] (2.10,0.85) circle[radius=0.15] (2.05,1.00) circle[radius=0.15] (2.00,1.15) circle[radius=0.15] (1.85,1.35) circle[radius=0.15] (1.60,1.25) circle[radius=0.15] (1.35,1.25) circle[radius=0.15] (1.30,1.50) circle[radius=0.15] (1.30,1.70) circle[radius=0.15] (1.20,1.90) circle[radius=0.15] (0.85,2.05) circle[radius=0.15] (1.05,2.00) circle[radius=0.15]; |
| 711 |
\fi |
| 712 |
% |
| 713 |
% devil (back horn) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 714 |
\ifduck@devil |
| 715 |
\fill[\duck@devil] (0.7723,2.3756) .. controls (0.6369,2.1184) and (0.7916,2.0228) .. (0.8360,1.9897) .. controls (0.8744,1.9675) and (0.8774,1.9511) .. (0.8853,1.9173) .. controls (0.8853,1.8595) and (0.8407,1.8127) .. (0.7856,1.8127) .. controls (0.7535,1.8178) and (0.7240,1.8231) .. (0.6965,1.8545) .. controls (0.6965,1.8545) and (0.4451,2.2259) .. (0.7723,2.3756) -- cycle; |
| 716 |
\fi |
| 717 |
% |
| 718 |
% Conical Hat (background) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 719 |
\ifduck@conicalhat |
| 720 |
\fill[\duck@conicalhat!50!black,rotate=-21] (0.265,1.915) ellipse[x radius=0.79, y radius=0.1]; |
| 721 |
\fill[\duck@conicalhat!30!black] (0.5501,0.9739) -- (0.2002,1.9676) -- (0.2946,2.0008) -- (0.6445,1.0072) -- cycle; |
| 722 |
\fi |
| 723 |
% |
| 724 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 725 |
% |
| 726 |
% body parts |
| 727 |
% |
| 728 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 729 |
\ifduck@invisible |
| 730 |
\else |
| 731 |
% |
| 732 |
% body %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 733 |
\fill[\duck@body,overlay] \duckpathbody; |
| 734 |
% |
| 735 |
% head %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 736 |
\ifdefined\duck@head\else\let\duck@head=\duck@body\fi |
| 737 |
\fill[\duck@head] |
| 738 |
(0.90,1.50) ellipse[x radius=0.50, y radius=0.625]; |
| 739 |
% |
| 740 |
% bill %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 741 |
\ifduck@grumpy |
| 742 |
\fill[\duck@bill,overlay] \duckpathgrumpybill; |
| 743 |
\else |
| 744 |
\ifduck@laughing |
| 745 |
\fill[\duck@bill!80!black,overlay] (0.40,1.20) .. controls (0.54,1.36) and (0.65,1.31) .. (0.91,1.37) .. controls (0.45,1.06) and (0.36,1.18) .. (0.40,1.20) -- cycle; |
| 746 |
\fill[\duck@bill,overlay] (0.41,1.47) .. controls (0.64,1.53) and (0.54,1.30) .. (0.91,1.37) .. controls (-0.02,1.10) and (0.28,1.37) .. (0.41,1.47) -- cycle; |
| 747 |
\else |
| 748 |
\ifduck@parrot |
| 749 |
\fill[\duck@bill!80!black,overlay] |
| 750 |
(0.40,1.45) .. controls (0.51,1.48) and (0.54,1.44) .. (0.59,1.39) .. controls (0.63,1.34) and (0.69,1.34) .. (0.86,1.35) .. controls (0.43,1.15) and (0.37,1.13) .. (0.34,1.20) .. controls (0.52,1.27) and (0.34,1.40) .. (0.40,1.45) -- cycle; |
| 751 |
\fill[\duck@bill,overlay] |
| 752 |
(0.39,1.49) .. controls (0.50,1.52) and (0.54,1.44) .. (0.59,1.39) .. controls (0.63,1.34) and (0.68,1.34) .. (0.86,1.35) .. controls (0.43,1.15) and (0.54,1.40) .. (0.22,1.20) .. controls (0.24,1.52) and (0.39,1.49) .. (0.39,1.49) -- cycle; |
| 753 |
\else |
| 754 |
\fill[\duck@bill,overlay] \duckpathbill; |
| 755 |
\fi |
| 756 |
\fi |
| 757 |
\fi |
| 758 |
% |
| 759 |
% Superhero mask %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 760 |
% has to be behind the eyes |
| 761 |
\ifduck@mask |
| 762 |
\begin{scope} |
| 763 |
\clip (0.90,1.50) ellipse[x radius=0.50, y radius=0.625]; |
| 764 |
\fill[\duck@mask,rotate=-15] (-0.1,1.59) rectangle (1.3,1.88); |
| 765 |
\end{scope} |
| 766 |
\fi% |
| 767 |
% |
| 768 |
% right eye %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 769 |
\fill[\duck@eye, rotate=-20] |
| 770 |
(0.23,1.7675) ellipse[x radius=0.0893, y radius=0.125]; |
| 771 |
\fill[\duck@pupil, rotate=-20] |
| 772 |
(0.26,1.7575) ellipse[x radius=0.0357, y radius=0.0714]; |
| 773 |
% |
| 774 |
% left eye %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 775 |
\fill[\duck@eye, rotate=-20] |
| 776 |
(-0.06,1.74) ellipse[x radius=0.0786, y radius=0.1143]; |
| 777 |
\fill[\duck@pupil, rotate=-20] |
| 778 |
(-0.03,1.73) ellipse[x radius=0.0286, y radius=0.0643]; |
| 779 |
% |
| 780 |
\fi % from no duck |
| 781 |
% |
| 782 |
% adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 783 |
\UseHook{tikzducks/body} |
| 784 |
\csname duckhookbody\endcsname |
| 785 |
% |
| 786 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 787 |
% |
| 788 |
% clothing |
| 789 |
% |
| 790 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 791 |
% |
| 792 |
% Strap of the conical hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 793 |
\ifduck@conicalhat |
| 794 |
\ifduck@clothing |
| 795 |
\fill[\duck@conicalhat!30!black] (1.5943,1.5059) .. controls (1.4384,1.3576) and (1.2780,1.2120) .. (1.0987,1.0923) -- (1.0617,0.9549) .. controls (1.2151,1.0361) and (1.3476,1.1504) .. (1.4785,1.2630) .. controls (1.5417,1.3187) and (1.6038,1.3757) .. (1.6644,1.4344) -- cycle; |
| 796 |
\else |
| 797 |
\fill[\duck@conicalhat!30!black] (1.5943,1.5059) .. controls (1.4384,1.3576) and (1.2780,1.2120) .. (1.0987,1.0923) .. controls (0.9540,0.9995) and (0.7864,0.9875) .. (0.6358,1.0398) .. controls (0.6727,0.9043) and (0.9752,0.9113) .. (1.0617,0.9549) .. controls (1.2151,1.0361) and (1.3476,1.1504) .. (1.4785,1.2630) .. controls (1.5417,1.3187) and (1.6038,1.3757) .. (1.6644,1.4344) -- cycle; |
| 798 |
\fi |
| 799 |
\fi |
| 800 |
% |
| 801 |
% tshirt %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 802 |
\ifduck@tshirt |
| 803 |
\fill[\duck@tshirt,overlay] \duckpathtshirt; |
| 804 |
\fi |
| 805 |
% |
| 806 |
% tie %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 807 |
\ifduck@tie |
| 808 |
\fill[\duck@tie,rotate=-12] (0.32,0.7) rectangle (0.43,1.15); |
| 809 |
\fi |
| 810 |
% |
| 811 |
% jacket %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 812 |
\ifduck@jacket |
| 813 |
\fill[\duck@jacket,overlay] \duckpathjacket; |
| 814 |
\fi |
| 815 |
% |
| 816 |
% Áo dài %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 817 |
\ifduck@aodai |
| 818 |
\fill[\duck@aodai,overlay] (1.819,1.419) .. controls (2.871,0.120) and (0.711,-0.145) .. (0.296,0.251) .. controls (-0.118,0.647) and (0.232,1.073) .. (0.440,1.128) -- (0.567,0.927) .. controls (0.567,0.927) and (0.543,0.906) .. (0.509,0.882) -- (0.481,0.929) -- (0.458,0.915) -- (0.487,0.868) .. controls (0.473,0.859) and (0.457,0.850) .. (0.441,0.842) -- (0.422,0.894) -- (0.397,0.885) -- (0.417,0.831) .. controls (0.404,0.826) and (0.391,0.821) .. (0.378,0.818) -- (0.364,0.869) -- (0.338,0.862) -- (0.351,0.815) .. controls (0.334,0.814) and (0.318,0.817) .. (0.304,0.825) .. controls (0.303,0.774) and (0.329,0.759) .. (0.365,0.763) -- (0.376,0.722) -- (0.402,0.729) -- (0.391,0.768) .. controls (0.405,0.772) and (0.420,0.778) .. (0.435,0.784) -- (0.447,0.750) -- (0.472,0.759) -- (0.459,0.796) .. controls (0.477,0.805) and (0.496,0.815) .. (0.512,0.825) -- (0.533,0.791) -- (0.556,0.805) -- (0.535,0.840) .. controls (0.567,0.860) and (0.590,0.877) .. (0.590,0.877) .. controls (1.011,1.168) and (0.887,0.936) .. (1.819,1.419) -- cycle; |
| 819 |
\fi |
| 820 |
% |
| 821 |
% lapel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 822 |
\ifduck@lapel |
| 823 |
\fill[\duck@lapel] (0.490,1.145) .. controls (0.3984,1.13) and (0.3515,1.08) .. (0.3515,1.08) -- (0.4265,1.0192) -- (0.35,0.98) -- (0.513,0.700) -- (1.0089,0.9162) -- (0.9547,0.9868) -- (1.1194,0.9782) -- (1.0822,1.135) .. controls (0.9616,1.1) and (0.8648,1.0300) .. (0.513,0.700) -- cycle; |
| 824 |
\fi |
| 825 |
% |
| 826 |
% stripes for football jersey %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 827 |
\ifduck@stripes |
| 828 |
\duck@stripes |
| 829 |
\fi |
| 830 |
% |
| 831 |
% superhero cape %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 832 |
\ifduck@cape |
| 833 |
\fill[\duck@cape,overlay] \duckpathcape; |
| 834 |
\fi |
| 835 |
% |
| 836 |
% bowtie %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 837 |
\ifduck@bowtie |
| 838 |
\fill[\duck@bowtie] (0.4382, 1.1105) .. controls (0.3984, 1.0671) and (0.3911, 0.9535) .. (0.4116, 0.9176) .. controls (0.4958, 0.9064) and (0.565, 0.9487) .. (0.565, 0.9487) -- (0.6448, 0.9398) .. controls (0.6448, 0.9398) and (0.6777, 0.8844) .. (0.804, 0.8689) .. controls (0.8323, 0.9056) and (0.8422, 1.0026) .. (0.8284, 1.0551) .. controls (0.7881, 1.0942) and (0.6537, 1.0285) .. (0.6537, 1.0285) -- (0.5739, 1.0374) .. controls (0.5739, 1.0374) and (0.5436, 1.0956) .. (0.4382, 1.1105) -- cycle; |
| 839 |
\fi |
| 840 |
% |
| 841 |
% necklace (not really clothing, but needs to be below the hair) %%%%% |
| 842 |
\ifduck@necklace |
| 843 |
\fill[\duck@necklace] (0.5000,1.112) circle[radius=0.032] (0.5100,1.050) circle[radius=0.032] (0.5200,0.990) circle[radius=0.032] (0.5400,0.931) circle[radius=0.032] (0.5825,0.885) circle[radius=0.032] (0.6450,0.885) circle[radius=0.032] (0.7000,0.910) circle[radius=0.032] (0.7500,0.945) circle[radius=0.032] (0.8000,0.980) circle[radius=0.032] (0.8500,1.020) circle[radius=0.032] (0.9000,1.050) circle[radius=0.032] (0.9500,1.080) circle[radius=0.032] (1.0000,1.110) circle[radius=0.032] (1.0550,1.130) circle[radius=0.032] (1.1100,1.150) circle[radius=0.032] (1.1650,1.165) circle[radius=0.032] (1.2200,1.180) circle[radius=0.032] (1.2750,1.195) circle[radius=0.032] (1.3300,1.210) circle[radius=0.032]; |
| 844 |
\fi |
| 845 |
% |
| 846 |
% Scout neckerchief %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 847 |
\ifduck@neckerchief |
| 848 |
\fill[\duck@neckerchief] |
| 849 |
(0.3650,1.0892) .. controls (0.4127,1.1589) and (0.4900,1.1450) .. (0.4900,1.1450) .. controls (0.6500,0.9300) and (1.1366,1.2400) .. (1.3675,1.2649) .. controls (1.4131,1.2533) and (1.4052,1.2446) .. (1.4099,1.2124) .. controls (1.3028,1.0810) and (0.7415,0.8930) .. (0.6807,0.9076) .. controls (0.8257,0.7387) and (0.6347,0.7168) .. (0.7151,0.4426) .. controls (0.6059,0.5672) and (0.5513,0.6588) .. (0.5938,0.8388) .. controls (0.5871,0.6953) and (0.4493,0.7565) .. (0.4716,0.4967) .. controls (0.3682,0.6697) and (0.3820,0.7984) .. (0.5321,0.9351) .. controls (0.4635,0.9699) and (0.4115,1.0215) .. (0.3650,1.0892) -- cycle; |
| 850 |
\fill[\duck@woggle, rounded corners=\scalingfactor*1, rotate=-10] (0.33,1.05) rectangle (0.55,0.98); |
| 851 |
\fi |
| 852 |
% |
| 853 |
% Scarf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 854 |
\ifduck@scarf |
| 855 |
\fill[\duck@scarf] (1.3780,1.2876) .. controls (1.1405,1.0484) and (0.7278,0.8710) .. (0.4865,1.1319) .. controls (0.4312,1.1245) and (0.3749,1.1088) .. (0.3443,1.0553) .. controls (0.4097,0.9269) and (0.4360,0.9534) .. (0.5231,0.8623) -- (0.4780,0.5230) -- (0.5666,0.5486) -- (0.6442,0.5011) -- (0.6584,0.6852) -- (0.6881,0.3913) -- (0.7782,0.4358) -- (0.8543,0.4133) -- (0.7988,0.8309) .. controls (1.0539,0.8635) and (1.1298,0.8415) .. (1.4849,1.1302) .. controls (1.4898,1.1985) and (1.4313,1.2543) .. (1.3780,1.2876) -- cycle; |
| 856 |
\fi |
| 857 |
% |
| 858 |
% buttons (same argument as for the necklace) |
| 859 |
\ifduck@buttons |
| 860 |
\ifduck@jacket |
| 861 |
\fill[\duck@buttons] (0.49,0.6) circle[radius=0.05] (0.46,0.45) circle[radius=0.05] (0.45,0.3) circle[radius=0.05]; |
| 862 |
\else |
| 863 |
\fill[\duck@buttons] (0.53,0.75) circle[radius=0.05] (0.5,0.6) circle[radius=0.05] (0.47,0.45) circle[radius=0.05]; |
| 864 |
\fi |
| 865 |
\fi |
| 866 |
% |
| 867 |
% adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 868 |
\UseHook{tikzducks/clothing} |
| 869 |
\csname duckhookclothing\endcsname |
| 870 |
% |
| 871 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 872 |
% |
| 873 |
% hair styles |
| 874 |
% |
| 875 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 876 |
% |
| 877 |
% short hair %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 878 |
\ifduck@shorthair |
| 879 |
\path (0.1,0.1) rectangle (2.1,2.25); |
| 880 |
\fill[\duck@hair,overlay] \duckpathshorthair; |
| 881 |
\fi |
| 882 |
% |
| 883 |
% long hair %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 884 |
\ifduck@longhair |
| 885 |
\path (0.1,0.1) rectangle (2.1,2.25); |
| 886 |
\fill[\duck@hair,overlay] \duckpathlonghair; |
| 887 |
\fi |
| 888 |
% |
| 889 |
% crazy hair %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 890 |
\ifduck@crazyhair |
| 891 |
\path (0.1,0.1) rectangle (2.1,2.4); |
| 892 |
\fill[\duck@hair,overlay] \duckpathcrazyhair; |
| 893 |
\fi |
| 894 |
% |
| 895 |
% receding hair %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 896 |
\ifduck@recedinghair |
| 897 |
\path (0.1,0.1) rectangle (2.1,2.18); |
| 898 |
\fill[\duck@hair,overlay] \duckpathrecedinghair; |
| 899 |
\fi |
| 900 |
% |
| 901 |
% mohican hair %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 902 |
\ifduck@mohican |
| 903 |
\path (0.1,0.1) rectangle (2.1,2.24); |
| 904 |
\fill[\duck@hair,overlay] \duckpathmohican; |
| 905 |
\fi |
| 906 |
% |
| 907 |
% mullet hair %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 908 |
\ifduck@mullet |
| 909 |
\path (0.1,0.1) rectangle (2.1,2.17); |
| 910 |
\fill[\duck@hair,overlay] \duckpathmullet; |
| 911 |
\fi |
| 912 |
% |
| 913 |
% middle parting %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 914 |
\ifduck@parting |
| 915 |
\path (0.1,0.1) rectangle (2.1,2.22); |
| 916 |
\fill[\duck@hair,overlay] (1.4053,1.5403) .. controls (1.5524,2.2939) and (0.3739,2.5180) .. (0.4084,1.6117) .. controls (0.4248,1.8921) and (0.7860,1.9734) .. (0.7860,1.9734) .. controls (1.1125,1.5754) and (1.3375,1.4715) .. (1.4053,1.5403) -- cycle; |
| 917 |
\fi |
| 918 |
% |
| 919 |
% eye brow %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 920 |
\pgfkeys{/duck/eyebrow/.@def/.get=\duck@test} |
| 921 |
\ifx\duck@eyebrow\duck@test |
| 922 |
\ifdefined\duck@hair\let\duck@eyebrow=\duck@hair\fi |
| 923 |
\fi% |
| 924 |
\ifduck@eyebrow |
| 925 |
\fill[\duck@eyebrow, rounded corners=\scalingfactor*1, rotate=60] (1.92,0.21) rectangle (1.98,-0.01); |
| 926 |
\fill[\duck@eyebrow, rounded corners=\scalingfactor*1, rotate=100] (1.67,-0.77) rectangle (1.73,-0.95); |
| 927 |
\fi |
| 928 |
% |
| 929 |
% beard %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 930 |
\pgfkeys{/duck/beard/.@def/.get=\duck@test} |
| 931 |
\ifx\duck@beard\duck@test |
| 932 |
\ifdefined\duck@hair\let\duck@beard=\duck@hair\fi |
| 933 |
\fi% |
| 934 |
\ifduck@beard |
| 935 |
\fill[\duck@beard] (1.3,1.3) circle[radius=0.12] (1.2,1.15) circle[radius=0.12] (0.5,1.05) circle[radius=0.1] (0.525,0.90) circle[radius=0.12] (0.525,0.75) circle[radius=0.12] (0.65,0.65) circle[radius=0.14] (0.75,0.75) circle[radius=0.12] (0.85,0.85) circle[radius=0.12] (0.95,0.95) circle[radius=0.12] (1.05,1.05) circle[radius=0.12] (1.15,1.25) circle[radius=0.12] (1,1.20) circle[radius=0.12] (0.85,1.20) circle[radius=0.12] (0.75,1.15) circle[radius=0.12] (0.65,1.10) circle[radius=0.12] (0.58,1.07) circle[radius=0.12] (0.44,1.46) circle[radius=0.06] (0.52,1.45) circle[radius=0.06] (0.6, 1.41) circle[radius=0.06] (0.68,1.36) circle[radius=0.06] (0.76,1.34) circle[radius=0.06] (0.86,1.26) circle[radius=0.12] (0.38,1.44) circle[radius=0.03] (1,1.28) circle[radius=0.12]; |
| 936 |
\fill[\duck@beard] (1.3,1.3) -- (0.5,1.05) -- (0.65,0.65) -- cycle; |
| 937 |
\fi% |
| 938 |
% |
| 939 |
% adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 940 |
\UseHook{tikzducks/hair} |
| 941 |
\csname duckhookhair\endcsname |
| 942 |
% |
| 943 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 944 |
% |
| 945 |
% Headgear |
| 946 |
% |
| 947 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 948 |
% |
| 949 |
% alien %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 950 |
\ifduck@alien |
| 951 |
\fill[\duck@alien,rotate=-25] (0.09,2.1) rectangle (0.16,2.6); |
| 952 |
\fill[\duck@alien,rotate=5] (0.79,1.86) rectangle (0.86,2.25); |
| 953 |
\fill[\duck@alien] (1.20,2.30) circle[radius=0.07]; |
| 954 |
\fill[\duck@alien] (0.62,2.35) circle[radius=0.07]; |
| 955 |
\fi |
| 956 |
% |
| 957 |
% hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 958 |
\ifduck@hat |
| 959 |
\ifdefined\duck@hair % with hair |
| 960 |
\fill[\duck@hat,rotate=-15] (0.44,2.1) ellipse[x radius=0.7, y radius=0.1]; |
| 961 |
\fill[\duck@hat,rotate=-15] (0.0,2.1) rectangle (0.88,2.4); |
| 962 |
\fill[\duck@hat,rotate=-15] (0.44,2.4) ellipse[x radius=0.44, y radius=0.08]; |
| 963 |
\else % without hair |
| 964 |
\fill[\duck@hat,rotate=-15] (0.44,2.1) ellipse[x radius=0.6, y radius=0.1]; |
| 965 |
\fill[\duck@hat,rotate=-15] (0.07,2.1) rectangle (0.81,2.4); |
| 966 |
\fill[\duck@hat,rotate=-15] (0.44,2.4) ellipse[x radius=0.37, y radius=0.08]; |
| 967 |
\fi |
| 968 |
\fi |
| 969 |
% |
| 970 |
% cap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 971 |
\ifduck@cap |
| 972 |
\fill[\duck@cap, start angle=0, end angle=150, radius=0.5] (1.4,1.75) arc; |
| 973 |
\fill[\duck@cap,rotate=-15] (0.3,2.05) ellipse[x radius=0.6, y radius=0.15]; |
| 974 |
\fi |
| 975 |
% |
| 976 |
% Santa %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 977 |
\ifduck@santa |
| 978 |
\fill[\duck@santa] |
| 979 |
(0.430,1.803) .. controls (0.590,2.174) and (0.837,2.065) .. |
| 980 |
(1.118,1.954) .. controls (1.679,1.731) and (1.328,1.193) .. |
| 981 |
(1.647,1.057) .. controls (1.638,1.255) and (1.745,2.104) .. |
| 982 |
(1.168,2.270) .. controls (0.867,2.356) and (0.536,2.280) .. |
| 983 |
(0.430,1.803) -- cycle; |
| 984 |
\fill[white!80!brown] |
| 985 |
(0.44,1.733) .. controls (0.211,2.299) and (1.082,2.188) .. |
| 986 |
(1.456,1.759) .. controls (1.534,1.637) and (1.480,1.545) .. |
| 987 |
(1.400,1.566) .. controls (1.265,1.714) and (0.577,2.267) .. |
| 988 |
(0.44,1.733) -- cycle; |
| 989 |
\fill[white!80!brown] (1.6,1.0) circle[radius=0.17]; |
| 990 |
\fi |
| 991 |
% |
| 992 |
% Chef hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 993 |
\ifduck@chef |
| 994 |
\fill[\duck@chef,rotate=-15] (0.44,2.1) ellipse[x radius=0.37, y radius=0.08]; |
| 995 |
\fill[\duck@chef,rotate=-15] (0.07,2.1) rectangle (0.81,2.55); |
| 996 |
\fill[\duck@chef] (1.01,2.47) circle[radius=0.17]; |
| 997 |
\fill[\duck@chef] (1.24,2.35) circle[radius=0.15]; |
| 998 |
\fill[\duck@chef] (0.77,2.40) circle[radius=0.12]; |
| 999 |
\fill[\duck@chef] (1.39,2.20) circle[radius=0.12]; |
| 1000 |
\fi |
| 1001 |
% |
| 1002 |
% graduate hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1003 |
\ifduck@graduate |
| 1004 |
\fill[\duck@graduate,rotate=-15] (0.44,2.1) ellipse[x radius=0.37, y radius=0.1]; |
| 1005 |
\fill[\duck@graduate,rotate=-15] (0.07,2.1) rectangle (0.81,2.3); |
| 1006 |
\fill[\duck@graduate] (0.3,2.25) -- (1.05,2.35) -- (1.7,1.95) -- (0.92,1.85) -- cycle; |
| 1007 |
\fill[\duck@tassel,rounded corners=\scalingfactor*1] (1.12,1.89) -- (1.01,2.1) -- (1.09,2.11) -- (1.2,1.9) -- (1.2,1.3) -- (1.12,1.3) -- cycle; |
| 1008 |
\fill[\duck@tassel] (1.16,1.3) ellipse[x radius=0.06, y radius=0.12]; |
| 1009 |
\fi |
| 1010 |
% |
| 1011 |
% beret %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1012 |
\ifduck@beret |
| 1013 |
\fill[\duck@beret,rotate=-25] (0.13,2.15) ellipse[x radius=0.5, y radius=0.17]; |
| 1014 |
\fill[\duck@beret,rotate=-25] (0.13,2.25) ellipse[x radius=0.55, y radius=0.17]; |
| 1015 |
\fill[\duck@beret,rotate=-25] (0.13,2.4) circle[radius=0.08]; |
| 1016 |
\fi |
| 1017 |
% |
| 1018 |
% unicorn %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1019 |
\ifduck@unicorn |
| 1020 |
\fill[\duck@unicorn,rotate=25] (1.48,1.4375)--(1.60,1.9)--(1.72,1.4375); |
| 1021 |
\fill[\duck@body!100,rotate=25] (1.50,1.43)--(1.60,1.8375)--(1.70,1.43); |
| 1022 |
\fi |
| 1023 |
% |
| 1024 |
% magic hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1025 |
\ifduck@magichat |
| 1026 |
\path[preaction={fill, \duck@magichat!100},rotate=-5, |
| 1027 |
pattern={Stars[distance=1.7mm,radius=0.5mm,angle=32]}, pattern color=\duck@magicstars!100] |
| 1028 |
(0.36,1.95)--(0.86,2.95)--(1.20,1.85); |
| 1029 |
\fi |
| 1030 |
% |
| 1031 |
% witch %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1032 |
\ifduck@witch |
| 1033 |
\fill[\duck@witch,rotate=-15] (0.44,2.13) ellipse[x radius=0.75, y radius=0.17]; |
| 1034 |
\fill[\duck@witch,rotate=-15] (0.05,2.2)--(0.45,3.2)--(0.82,2.2); |
| 1035 |
\fi |
| 1036 |
% |
| 1037 |
% crown %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1038 |
\ifduck@crown |
| 1039 |
\path (0.7,1.95) rectangle (1.4,2.45); |
| 1040 |
\fill[\duck@crown,overlay] \duckpathcrown; |
| 1041 |
\fi |
| 1042 |
% |
| 1043 |
% Queen crown %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1044 |
\ifduck@queencrown |
| 1045 |
\fill[\duck@queencrown] \duckpathqueencrown; |
| 1046 |
\fi |
| 1047 |
% |
| 1048 |
% King crown %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1049 |
\ifduck@kingcrown |
| 1050 |
\fill[\duck@kingcrown] \duckpathkingcrown; |
| 1051 |
\fi |
| 1052 |
% |
| 1053 |
% Bunny ears %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1054 |
\ifduck@bunny |
| 1055 |
\path (0.55,1.9) rectangle (1.2,2.55); |
| 1056 |
\begin{pgfinterruptboundingbox} |
| 1057 |
\begin{scope} |
| 1058 |
\clip[rotate=-5] (0.68,2.38) ellipse[x radius=0.3, y radius=0.4]; |
| 1059 |
\fill[\duck@bunny,rotate=-5] (1.06,2.2) ellipse[x radius=0.3, y radius=0.4] (0.28,2.26) ellipse[x radius=0.3, y radius=0.4]; |
| 1060 |
\end{scope} |
| 1061 |
|
| 1062 |
\begin{scope} |
| 1063 |
\clip[rotate=-5] (0.68,2.38) ellipse[x radius=0.25, y radius=0.35]; |
| 1064 |
\fill[\duck@inear,rotate=-5] (1.06,2.2) ellipse[x radius=0.25, y radius=0.35] (0.28,2.26) ellipse[x radius=0.25, y radius=0.35]; |
| 1065 |
\end{scope} |
| 1066 |
\end{pgfinterruptboundingbox} |
| 1067 |
\fi |
| 1068 |
% |
| 1069 |
% peaked cap %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1070 |
\ifduck@peakedcap |
| 1071 |
\fill[\duck@peakedcap,rotate=-15] (0.35,2.05) ellipse[x radius=0.5, y radius=0.15]; |
| 1072 |
\fill[\duck@peakedcap,rotate=-25] (0.13,2.15) ellipse[x radius=0.5, y radius=0.17]; |
| 1073 |
\fill[\duck@peakedcap,rotate=-35] (-0.25,2.2) ellipse[x radius=0.55, y radius=0.17]; |
| 1074 |
\fi |
| 1075 |
% |
| 1076 |
% tophat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1077 |
\ifduck@tophat |
| 1078 |
\fill[\duck@tophat,rotate=-15] (0.44,2.1) ellipse[x radius=0.48, y radius=0.1]; |
| 1079 |
\fill[\duck@tophat,rotate=-15] (0.12,2.1) -- (0.75,2.1) -- (0.81,2.55) -- (0.07,2.55) -- cycle; |
| 1080 |
\fill[\duck@tophat,rotate=-15] (0.44,2.55) ellipse[x radius=0.37, y radius=0.08]; |
| 1081 |
\fi |
| 1082 |
% |
| 1083 |
% darth vader %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1084 |
\ifduck@darthvader |
| 1085 |
\path (0.1,0.1) rectangle (2.1,2.22); |
| 1086 |
\fill[\duck@darthvader,overlay] \duckpathdarthvader; |
| 1087 |
\fi |
| 1088 |
% |
| 1089 |
% Harlequin duck %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1090 |
\ifduck@harlequin |
| 1091 |
\path (0.19,1.85) rectangle (1.85,2.67); |
| 1092 |
\fill[\duck@harlequin,overlay] (0.6006,1.9719) .. controls (0.7432,1.8954) and (0.9320,1.8698) .. (0.9320,1.8698) -- (1.0404,2.3839) .. controls (0.9223,2.8873) and (0.1755,2.5634) .. (0.3019,2.2958) .. controls (0.5807,2.5024) and (0.7251,2.3376) .. (0.6006,1.9719) -- cycle; |
| 1093 |
\fill[\duck@niuqelrah,overlay] (1.2853,1.8902) .. controls (1.1177,1.8507) and (0.9278,1.8703) .. (0.9278,1.8703) -- (1.0404,2.3839) .. controls (1.3637,2.8347) and (1.9373,2.3532) .. (1.7049,2.1284) .. controls (1.5267,2.3895) and (1.3204,2.2666) .. (1.2853,1.8902) -- cycle; |
| 1094 |
\fill[\duck@harlequin] (1.7,2.07) circle[radius=0.1]; |
| 1095 |
\fill[\duck@niuqelrah] (0.3,2.23) circle[radius=0.1]; |
| 1096 |
\fi |
| 1097 |
% |
| 1098 |
% Straw hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1099 |
\ifduck@strawhat |
| 1100 |
\fill[\duck@strawhat,rotate=-15] (0.44,2.0) ellipse[x radius=0.75, y radius=0.1]; |
| 1101 |
\fill[\duck@strawhat,rotate=-15] (0.1,2.05) rectangle (0.78,2.5); |
| 1102 |
\fill[\duck@strawhat,rotate=-15] (0.44,2.5) ellipse[x radius=0.34, y radius=0.08]; |
| 1103 |
\fill[\duck@strawhat,rotate=-15] (-0.3,2.02) -- (1.18,2.02) -- (0.78,2.2) -- (0.1,2.2) -- cycle; |
| 1104 |
\fill[\duck@ribbon,rotate=-15] (0.44,2.2) ellipse[x radius=0.34, y radius=0.08]; |
| 1105 |
\fill[\duck@ribbon,rotate=-15] (0.1,2.2) rectangle (0.78,2.3); |
| 1106 |
\fill[\duck@strawhat,rotate=-15] (0.44,2.3) ellipse[x radius=0.34, y radius=0.08]; |
| 1107 |
\fi |
| 1108 |
% |
| 1109 |
% helmet %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1110 |
\ifduck@helmet |
| 1111 |
\fill[\duck@helmet] (1.4331,1.5155) .. controls (1.4365,1.7226) and (1.3866,2.0493) .. (1.0429,2.1279) .. controls (0.7050,2.2052) and (0.4794,1.9294) .. (0.4481,1.8183) .. controls (0.6062,1.8381) and (1.1506,1.7480) .. (1.4331,1.5155) -- cycle; |
| 1112 |
\fill[\duck@helmet!70!black] (1.0282,2.1360) .. controls (0.9395,2.1312) and (0.8696,2.0652) .. (0.8152,2.0010) .. controls (0.7824,1.9609) and (0.7546,1.9169) .. (0.7309,1.8709) .. controls (0.6510,1.8859) and (0.5703,1.8971) .. (0.4892,1.9024) .. controls (0.4595,1.8831) and (0.4114,1.7962) .. (0.4743,1.7961) .. controls (0.5446,1.7868) and (0.6149,1.7767) .. (0.6845,1.7629) .. controls (0.6647,1.7052) and (0.6469,1.6454) .. (0.6401,1.5851) -- (0.6583,1.5355) -- (0.7069,1.5673) .. controls (0.7193,1.6285) and (0.7363,1.6889) .. (0.7590,1.7471) .. controls (0.9991,1.6922) and (1.2114,1.6182) .. (1.4111,1.4722) .. controls (1.4369,1.4960) and (1.4536,1.5229) .. (1.4475,1.5553) .. controls (1.4417,1.5927) and (1.4030,1.6066) .. (1.3766,1.6276) .. controls (1.2054,1.7408) and (1.0085,1.8089) .. (0.8095,1.8546) .. controls (0.8733,1.9674) and (0.9684,2.0703) .. (1.0932,2.1138) .. controls (1.0751,2.1288) and (1.0515,2.1362) .. (1.0282,2.1360) -- cycle; |
| 1113 |
\fill[\duck@helmet!50!white] (0.502,1.845) circle[radius=0.015] (0.586,1.835) circle[radius=0.015] (0.684,1.822) circle[radius=0.015] (0.791,1.799) circle[radius=0.015] (0.899,1.770) circle[radius=0.015] (1.003,1.741) circle[radius=0.015] (1.099,1.706) circle[radius=0.015] (1.185,1.673) circle[radius=0.015] (1.276,1.629) circle[radius=0.015] (1.360,1.581) circle[radius=0.015] (0.676,1.606) circle[radius=0.015] (0.695,1.666) circle[radius=0.015] (0.714,1.729) circle[radius=0.015] (0.784,1.889) circle[radius=0.015] (0.835,1.968) circle[radius=0.015] (0.896,2.034) circle[radius=0.015] (0.957,2.081) circle[radius=0.015] (1.020,2.115) circle[radius=0.015] (1.422,1.535) circle[radius=0.015] (0.502,1.845) circle[radius=0.015]; |
| 1114 |
\fi |
| 1115 |
% |
| 1116 |
% Viking %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1117 |
\ifduck@viking |
| 1118 |
\fill[\duck@viking] (1.4331,1.5155) .. controls (1.4365,1.7226) and (1.3866,2.0493) .. (1.0429,2.1279) .. controls (0.7050,2.2052) and (0.4794,1.9294) .. (0.4481,1.8183) .. controls (0.6062,1.8381) and (1.1506,1.7480) .. (1.4331,1.5155) -- cycle; |
| 1119 |
\fill[\duck@viking!70!black] (1.0282,2.1360) .. controls (0.9395,2.1312) and (0.8696,2.0652) .. (0.8152,2.0010) .. controls (0.7824,1.9609) and (0.7546,1.9169) .. (0.7309,1.8709) .. controls (0.6510,1.8859) and (0.5703,1.8971) .. (0.4892,1.9024) .. controls (0.4595,1.8831) and (0.4114,1.7962) .. (0.4743,1.7961) .. controls (0.5446,1.7868) and (0.6149,1.7767) .. (0.6845,1.7629) .. controls (0.6845,1.7629) and (0.6845,1.7629) .. (0.7590,1.7471) .. controls (0.9991,1.6922) and (1.2114,1.6182) .. (1.4111,1.4722) .. controls (1.4369,1.4960) and (1.4536,1.5229) .. (1.4475,1.5553) .. controls (1.4417,1.5927) and (1.4030,1.6066) .. (1.3766,1.6276) .. controls (1.2054,1.7408) and (1.0085,1.8089) .. (0.8095,1.8546) .. controls (0.8733,1.9674) and (0.9684,2.0703) .. (1.0932,2.1138) .. controls (1.0751,2.1288) and (1.0515,2.1362) .. (1.0282,2.1360) -- cycle; |
| 1120 |
\fill[\duck@viking!50!white] (0.502,1.845) circle[radius=0.015] (0.586,1.835) circle[radius=0.015] (0.684,1.822) circle[radius=0.015] (0.791,1.799) circle[radius=0.015] (0.899,1.770) circle[radius=0.015] (1.003,1.741) circle[radius=0.015] (1.099,1.706) circle[radius=0.015] (1.185,1.673) circle[radius=0.015] (1.276,1.629) circle[radius=0.015] (1.360,1.581) circle[radius=0.015] (0.784,1.889) circle[radius=0.015] (0.835,1.968) circle[radius=0.015] (0.896,2.034) circle[radius=0.015] (0.957,2.081) circle[radius=0.015] (1.020,2.115) circle[radius=0.015] (1.422,1.535) circle[radius=0.015]; |
| 1121 |
\fi |
| 1122 |
% |
| 1123 |
% devil (front horn) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1124 |
\ifduck@devil |
| 1125 |
\fill[\duck@devil] (1.2185,2.3521) .. controls (1.3540,2.0950) and (1.1993,1.9994) .. (1.1548,1.9663) .. controls (1.1165,1.9441) and (1.1134,1.9277) .. (1.1056,1.8938) .. controls (1.1056,1.8361) and (1.1502,1.7893) .. (1.2052,1.7893) .. controls (1.2373,1.7944) and (1.2669,1.7996) .. (1.2944,1.8311) .. controls (1.2944,1.8311) and (1.5458,2.2025) .. (1.2185,2.3521) -- cycle; |
| 1126 |
\fi |
| 1127 |
% |
| 1128 |
% Conical Hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1129 |
\ifduck@conicalhat |
| 1130 |
\path (0.19,1.4) rectangle (1.68,2.32); |
| 1131 |
\fill[\duck@conicalhat,overlay] (1.6722,1.4137) .. controls (1.6722,1.4337) and (1.3592,1.6230) .. (0.9513,1.7735) .. controls (0.5433,1.9239) and (0.1948,1.9784) .. (0.1948,1.9754) .. controls (0.2049,2.0230) and (1.1428,2.36) .. (1.1428,2.3) .. controls (1.1428,2.35) and (1.6821,1.4784) .. (1.6722,1.4137) -- cycle; |
| 1132 |
\fi |
| 1133 |
% |
| 1134 |
% Sailor hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1135 |
\ifduck@sailor |
| 1136 |
\fill[\duck@sailor] (1.0390,2.2743) .. controls (0.9475,2.2748) and (0.8569,2.2355) .. (0.7943,2.1690) .. controls (0.7147,2.1872) and (0.6335,2.2098) .. (0.5512,2.2029) .. controls (0.5524,2.1164) and (0.5536,2.0299) .. (0.5547,1.9434) .. controls (0.6637,1.9348) and (0.7679,1.8974) .. (0.8716,1.8653) .. controls (1.0321,1.8101) and (1.1932,1.7522) .. (1.3420,1.6697) .. controls (1.3671,1.6622) and (1.3911,1.6147) .. (1.4083,1.6518) .. controls (1.4623,1.7160) and (1.5163,1.7802) .. (1.5702,1.8444) .. controls (1.5154,1.8979) and (1.4433,1.9287) .. (1.3757,1.9624) .. controls (1.3666,2.1156) and (1.2403,2.2511) .. (1.0881,2.2707) .. controls (1.0718,2.2731) and (1.0554,2.2743) .. (1.0390,2.2743) -- cycle; |
| 1137 |
\fi |
| 1138 |
% |
| 1139 |
% Bobble hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1140 |
\ifduck@bobblehat |
| 1141 |
\begin{pgfinterruptboundingbox} |
| 1142 |
\fill[\duck@bobblehat] (0.4639,1.7996) .. controls (0.5789,1.8438) and (1.3853,1.6023) .. (1.4046,1.4672) .. controls (1.4581,1.5025) and (1.5242,1.5917) .. (1.4544,1.6879) .. controls (1.5205,2.1879) and (0.7711,2.3780) .. (0.5562,1.9848) .. controls (0.4314,1.9650) and (0.4277,1.8625) .. (0.4639,1.7996) -- cycle; |
| 1143 |
\fill[\duck@bobblehat] (1.1,2.2) circle [radius=0.1]; |
| 1144 |
\end{pgfinterruptboundingbox} |
| 1145 |
\path (0.43,1.3) rectangle (1.5,2.3); |
| 1146 |
\fi |
| 1147 |
% |
| 1148 |
% sombrero %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1149 |
\ifduck@sombrero |
| 1150 |
\begin{scope}[rotate=-20,xshift=8,yshift=2] |
| 1151 |
\fill[\duck@sombrero] (-.45,2) to[in=200] (0,2.8) to[out=-20] (.45,2) -- cycle; |
| 1152 |
\fill[\duck@sombrero] (-0.65, 1.75) .. controls (-0.85, 1.7) and (-0.85, 1.9) .. (-0.85, 1.9) .. controls (-0.30, 2.2) and (0.30, 2.2) .. ( 0.85, 1.9) .. controls ( 0.85, 1.9) and (0.85, 1.7) .. ( 0.65, 1.75) .. controls ( 0.30, 1.95) and (-0.30, 1.95) .. (-0.65, 1.75) -- cycle; |
| 1153 |
\draw[\duck@sombrerob,line width=\scalingfactor*0.8pt] (-0.85, 1.9) .. controls (-0.30, 2.2) and (0.30, 2.2) .. ( 0.85, 1.9); |
| 1154 |
\draw[decorate, decoration={zigzag, amplitude=\decoscalefactor*1pt, segment length=\scalingfactor*6pt}, \duck@sombreroa, line width=\scalingfactor*1pt] (-0.81, 1.8) .. controls (-0.30, 2.1) and (0.30, 2.1) .. ( 0.82, 1.8); |
| 1155 |
\begin{scope} |
| 1156 |
\clip (-.45,2) to[in=200] (0,2.8) to[out=-20] (.45,2) -- cycle; |
| 1157 |
\draw[decorate,decoration={zigzag, amplitude=\decoscalefactor*1pt, segment length=\scalingfactor*3pt},\duck@sombreroa, line width=\scalingfactor*1pt] (-.4,2.4) to[bend left] (.4,2.4); |
| 1158 |
\fill[decorate,decoration={shape backgrounds,shape=circle, shape size=\scalingfactor*2pt, shape evenly spread=7}, \duck@sombreroc] (-.3,2.6) to[bend left] (.3,2.6); |
| 1159 |
\fill[decorate,decoration={shape backgrounds,shape=circle,shape size=\scalingfactor*2pt,shape evenly spread=9},\duck@sombreroc] (-.4,2.18) to[bend left] (.4,2.18); |
| 1160 |
\end{scope} |
| 1161 |
\end{scope} |
| 1162 |
\fi |
| 1163 |
% |
| 1164 |
% adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1165 |
\UseHook{tikzducks/hat} |
| 1166 |
\csname duckhookhat\endcsname |
| 1167 |
% |
| 1168 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1169 |
% |
| 1170 |
% Accessories |
| 1171 |
% |
| 1172 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1173 |
% |
| 1174 |
% sunglasses %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1175 |
\ifduck@sunglasses |
| 1176 |
\fill[\duck@sunglasses,rotate=-17] (0.42,1.8) rectangle (0.8,1.84); |
| 1177 |
\fill[\duck@sunglasses,rotate=-17] (0.12,1.8) rectangle (0.22,1.84); |
| 1178 |
\fill[\duck@sunglasses,rotate=-20] (0.23,1.7675) circle[radius=0.14]; |
| 1179 |
\fill[\duck@sunglasses,rotate=-20] (-0.06,1.74) circle[radius=0.13]; |
| 1180 |
\fi |
| 1181 |
% |
| 1182 |
% glasses %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1183 |
\ifduck@glasses |
| 1184 |
\fill[\duck@glasses,rotate=-17] (0.42,1.8) rectangle (0.8,1.84); |
| 1185 |
\fill[\duck@glasses,rotate=-17] (0.12,1.8) rectangle (0.22,1.84); |
| 1186 |
\fill[\duck@glasses,rotate=-20,even odd rule] (0.23,1.7675) circle[radius=0.14] (0.23,1.7675) circle[radius=0.11]; |
| 1187 |
\fill[\duck@glasses,rotate=-20,even odd rule] (-0.06,1.74) circle[radius=0.13] (-0.06,1.74) circle[radius=0.095]; |
| 1188 |
\fi |
| 1189 |
% |
| 1190 |
% square glasses |
| 1191 |
\ifduck@squareglasses |
| 1192 |
\fill[\duck@squareglasses,rotate=-17] (0.43,1.8) rectangle (0.8,1.84); |
| 1193 |
\fill[\duck@squareglasses,rotate=-17] (0.12,1.8) rectangle (0.22,1.84); |
| 1194 |
\fill[\duck@squareglasses,rotate=-20,rounded corners=\scalingfactor*2,even odd rule] (-0.16,1.62) -- (-0.18,1.85) -- (0.05,1.87) -- (0.04,1.62) -- cycle [rounded corners=\scalingfactor*1.5] (-0.14,1.64) -- (-0.16,1.83) -- (0.03,1.85) -- (0.02,1.64) -- cycle; |
| 1195 |
\fill[\duck@squareglasses,rotate=-20,rounded corners=\scalingfactor*2,even odd rule] (0.12,1.63) -- (0.10,1.88) -- (0.36,1.90) -- (0.35,1.65) -- cycle [rounded corners=\scalingfactor*1.5] (0.14,1.65) -- (0.12,1.86) -- (0.34,1.88) -- (0.33,1.67) -- cycle; |
| 1196 |
\fi |
| 1197 |
% |
| 1198 |
% icecream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1199 |
\ifduck@icecream |
| 1200 |
\fill[\duck@cone,rotate=-20] (0.35,1.20)--(0.50,0.60)--(0.75,1.20); |
| 1201 |
\fill[\duck@flavoura] (0.85,1.03) circle[radius=0.12]; |
| 1202 |
\fill[\duck@flavourb] (1.05,0.95) circle[radius=0.12]; |
| 1203 |
\fill[\duck@flavourc] (0.95,1.1) circle[radius=0.12]; |
| 1204 |
\fi |
| 1205 |
% |
| 1206 |
% book %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1207 |
\ifduck@book |
| 1208 |
\fill[\duck@bookcolour,rotate=-20] |
| 1209 |
(0.40,1.20) rectangle (0.80,0.60); |
| 1210 |
\node[rotate=-20*\yscalefactor/\xscalefactor, color=white] at (0.88,0.70) {\duck@book};% |
| 1211 |
\fi |
| 1212 |
% |
| 1213 |
% signpost %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1214 |
\ifduck@signpost |
| 1215 |
\fill[\duck@signcolour, rounded corners=\scalingfactor*1, rotate=-20] (0.8,0.75) rectangle (0.9,1.75); |
| 1216 |
\fill[\duck@signcolour, rounded corners=\scalingfactor*1, rotate=-20] (0.4,1.7) rectangle (1.3,2.4); |
| 1217 |
\fill[\duck@signback, rounded corners=\scalingfactor*1, rotate=-20] (0.45,1.75) rectangle (1.25,2.35); |
| 1218 |
\node[rotate=-20*\yscalefactor/\xscalefactor, color=white] at (1.5,1.65) {\duck@signpost}; |
| 1219 |
\fi |
| 1220 |
% |
| 1221 |
% speech bubble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1222 |
\ifduck@speech |
| 1223 |
\fill[\duck@bubblecolour] (-0.5,1.8) ellipse[x radius=0.7, y radius=0.3]; |
| 1224 |
\fill[\duck@bubblecolour] (-0.2,1.54) -- (0.2,1.35) -- (0.0,1.6) -- cycle; |
| 1225 |
\node at (-0.5,1.8) {\duck@speech}; |
| 1226 |
\fi |
| 1227 |
% |
| 1228 |
% think bubble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1229 |
\ifduck@think |
| 1230 |
\fill[\duck@bubblecolour] (2,2.4) ellipse[x radius=0.7, y radius=0.35]; |
| 1231 |
\fill[\duck@bubblecolour] (1.55,2.35) circle[radius=0.25] (2.0,2.15) circle[radius=0.25] (2.4,2.25) circle[radius=0.25] (1.6,2.55) circle[radius=0.25] (2.0,2.6) circle[radius=0.25] (2.35,2.5) circle[radius=0.25] (1.65,1.95) circle[radius=0.1] (1.55,1.80) circle[radius=0.06] (1.47,1.70) circle[radius=0.03]; |
| 1232 |
\node at (2,2.4) {\duck@think}; |
| 1233 |
\fi |
| 1234 |
% |
| 1235 |
% magic wand %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1236 |
\ifduck@magicwand |
| 1237 |
\fill[black,rotate=-30] (0.27,1.23) rectangle (0.37,0.65); |
| 1238 |
\fill[white,rotate=-30] (0.27,1.13) rectangle (0.37,1.03); |
| 1239 |
\fi |
| 1240 |
% |
| 1241 |
% cricket bat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1242 |
\ifduck@cricket |
| 1243 |
\fill[\duck@cricket, rounded corners=\scalingfactor*2, rotate=-30] (0.4,1.2) rectangle (0.7,2.2); |
| 1244 |
\fill[\duck@cricket, rounded corners=\scalingfactor*1, rotate=-30] (0.5,0.8) rectangle (0.6,1.3); |
| 1245 |
\fi |
| 1246 |
% |
| 1247 |
% rollingpin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1248 |
\ifduck@rollingpin |
| 1249 |
\fill[\duck@rollingpin, rounded corners=\scalingfactor*2, rotate=-60] (-0.18,0.85) rectangle (0.08,1.75); |
| 1250 |
\fill[\duck@rollingpin, rounded corners=\scalingfactor*1, rotate=-60] (-0.1,0.65) rectangle (0.0,1.95); |
| 1251 |
\fi |
| 1252 |
% |
| 1253 |
% lightsaber %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1254 |
\ifduck@lightsaber |
| 1255 |
\fill[\duck@lightsaber, rounded corners=\scalingfactor*1, rotate=-30] (0.5,0.9) rectangle (0.6,2.5); |
| 1256 |
\fill[gray!80!black, rounded corners=\scalingfactor*1, rotate=-30] (0.47,0.7) rectangle (0.63,1.2); |
| 1257 |
\fi |
| 1258 |
% |
| 1259 |
% cake %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1260 |
\ifduck@cake |
| 1261 |
\fill[\duck@cake] (1.00,0.50) ellipse[x radius=0.4, y radius=0.2]; |
| 1262 |
\fill[\duck@cake] (0.6,0.5) rectangle (1.4,0.7); |
| 1263 |
\fill[\duck@cake] (1.00,0.70) ellipse[x radius=0.4, y radius=0.2]; |
| 1264 |
\fill[\duck@cake!50!white] (0.75,0.75) rectangle (0.8,0.95); |
| 1265 |
\fill[\duck@cake!50!white] (1.2,0.75) rectangle (1.25,0.95); |
| 1266 |
\fill[\duck@cake!50!white] (0.975,0.65) rectangle (1.025,0.85); |
| 1267 |
\fill[white!85!yellow] (1.0,0.93) ellipse[x radius=0.03, y radius=0.06]; |
| 1268 |
\fill[white!85!yellow] (1.225,1.03) ellipse[x radius=0.03, y radius=0.06]; |
| 1269 |
\fill[white!85!yellow] (0.775,1.03) ellipse[x radius=0.03, y radius=0.06]; |
| 1270 |
\fi |
| 1271 |
% |
| 1272 |
% pizza %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1273 |
\ifduck@pizza |
| 1274 |
\fill[brown] (1.00,0.60) ellipse[x radius=0.4, y radius=0.2]; |
| 1275 |
\fill[red!70!black] (1.00,0.60) ellipse[x radius=0.34, y radius=0.16]; |
| 1276 |
\fill[white!85!yellow] (1.15,0.65) ellipse[x radius=0.065, y radius=0.04]; |
| 1277 |
\fill[white!85!yellow] (0.81,0.57) ellipse[x radius=0.065, y radius=0.04]; |
| 1278 |
\fill[white!85!yellow] (0.95,0.68) ellipse[x radius=0.065, y radius=0.04]; |
| 1279 |
\fill[white!85!yellow] (1.02,0.54) ellipse[x radius=0.065, y radius=0.04]; |
| 1280 |
\fill[green!40!brown] (1.09,0.54) ellipse[x radius=0.07, y radius=0.02]; |
| 1281 |
\fill[green!40!brown,rotate=20] (1.0,0.34) ellipse[x radius=0.07, y radius=0.02]; |
| 1282 |
\fill[green!40!brown,rotate=-20] (0.9,1.05) ellipse[x radius=0.07, y radius=0.02]; |
| 1283 |
\fill[green!40!brown] (1.00,0.60) ellipse[x radius=0.03, y radius=0.06]; |
| 1284 |
\fi |
| 1285 |
% |
| 1286 |
% no pizza %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1287 |
\ifduck@davidlikespineapplepizza |
| 1288 |
\fill[brown] (1.00,0.60) ellipse[x radius=0.4, y radius=0.2]; |
| 1289 |
\fill[red!70!black] (1.00,0.60) ellipse[x radius=0.34, y radius=0.16]; |
| 1290 |
\fill[yellow!70!brown] (1.15,0.65) ellipse[x radius=0.08, y radius=0.06]; |
| 1291 |
\fill[red!70!black] (1.15,0.65) ellipse[x radius=0.04, y radius=0.03]; |
| 1292 |
\fill[yellow!70!brown] (0.81,0.57) ellipse[x radius=0.08, y radius=0.06]; |
| 1293 |
\fill[red!70!black] (0.81,0.57) ellipse[x radius=0.04, y radius=0.03]; |
| 1294 |
\fill[yellow!70!brown] (0.95,0.68) ellipse[x radius=0.08, y radius=0.06]; |
| 1295 |
\fill[red!70!black] (0.95,0.68) ellipse[x radius=0.04, y radius=0.03]; |
| 1296 |
\fill[yellow!70!brown] (1.02,0.54) ellipse[x radius=0.08, y radius=0.06]; |
| 1297 |
\fill[red!70!black] (1.02,0.54) ellipse[x radius=0.04, y radius=0.03]; |
| 1298 |
\fill[green!40!brown] (1.09,0.54) ellipse[x radius=0.07, y radius=0.02]; |
| 1299 |
\fill[green!40!brown,rotate=20] (1.0,0.34) ellipse[x radius=0.07, y radius=0.02]; |
| 1300 |
\fill[green!40!brown,rotate=-20] (0.9,1.05) ellipse[x radius=0.07, y radius=0.02]; |
| 1301 |
\fill[green!40!brown] (1.00,0.60) ellipse[x radius=0.03, y radius=0.06]; |
| 1302 |
\fi |
| 1303 |
% |
| 1304 |
% Hockey stick %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1305 |
\ifduck@hockey |
| 1306 |
\fill[\duck@hockey, rounded corners=\scalingfactor*1, rotate=-30] (0.5,0.6) rectangle (0.6,2.1); |
| 1307 |
\fill[\duck@hockey, rounded corners=\scalingfactor*3] (0.2,0.2) rectangle (0.85,0.4); |
| 1308 |
\fi |
| 1309 |
% |
| 1310 |
% baguette %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1311 |
\ifduck@baguette |
| 1312 |
\fill[\duck@baguette!70!white, rounded corners=\scalingfactor*4, rotate=-30] (0.4,0.72) rectangle (0.7,2.0); |
| 1313 |
\fill[\duck@baguette!80!black, rotate=5] (1.44,1.1) ellipse[x radius=0.1, y radius=0.03] (1.30,0.9) ellipse[x radius=0.1, y radius=0.03] (1.16,0.7) ellipse[x radius=0.1, y radius=0.03] (1.02,0.5) ellipse[x radius=0.1, y radius=0.03]; |
| 1314 |
\fi |
| 1315 |
% |
| 1316 |
% football %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1317 |
\ifduck@football |
| 1318 |
\fill[\duck@football] (1.2,0.33) circle[radius=0.32]; |
| 1319 |
\begin{scope} |
| 1320 |
\clip (1.2,0.33) circle[radius=0.32]; |
| 1321 |
\fill[black] (1.06,0.30) -- (1.01,0.17) -- (1.14,0.08) -- (1.26,0.14) -- (1.20,0.28) -- cycle (1.37,0.14) -- (1.46,0.27) -- (1.59,0.27) -- (1.41,0.04) -- cycle (1.28,0.38) -- (1.22,0.52) -- (1.33,0.61) -- (1.45,0.51) -- (1.43,0.37) -- cycle (0.87,0.44) -- (1.02,0.40) -- (1.10,0.53) -- (1.07,0.62) -- (0.94,0.57) -- cycle; |
| 1322 |
\end{scope} |
| 1323 |
\fi |
| 1324 |
% |
| 1325 |
% milkshake %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1326 |
\ifduck@milkshake |
| 1327 |
\fill[cyan!10!white, rotate=-10] (0.8,0.50) ellipse[x radius=0.17, y radius=0.05]; |
| 1328 |
\fill[cyan!10!white, rotate=-10] (0.8,0.55) ellipse[x radius=0.12, y radius=0.03]; |
| 1329 |
\begin{scope} |
| 1330 |
\clip[rotate=-10] (0.58,0.5) rectangle (1.02,1.03); |
| 1331 |
\fill[cyan!10!white, rotate=-10] (0.8,0.94) ellipse[x radius=0.18, y radius=0.4]; |
| 1332 |
\fill[\duck@milkshake, rotate=-10] (0.8,0.94) ellipse[x radius=0.15, y radius=0.36]; |
| 1333 |
\end{scope} |
| 1334 |
\fill[white!85!yellow] (0.83,0.92) circle[radius=0.05] (0.88,0.9) circle[radius=0.05] (0.93,0.92) circle[radius=0.05] (0.99,0.91) circle[radius=0.05] (1.06,0.86) circle[radius=0.05] (1.13,0.87) circle[radius=0.05] (0.85,0.99) circle[radius=0.05] (0.9,0.98) circle[radius=0.07] (1.0,0.98) circle[radius=0.07] (1.1,0.95) circle[radius=0.07]; |
| 1335 |
\fill[red!90!black] (1.0,1.1) circle[radius=0.05]; |
| 1336 |
\fill[white!85!yellow] (0.94,1.05) circle[radius=0.05] (1.03,1.03) circle[radius=0.05]; |
| 1337 |
\fill[cyan!10!white, rotate=-10] (0.8,0.50) ellipse[x radius=0.17, y radius=0.05]; |
| 1338 |
\fill[red!90!black,rotate=20] (1.2,0.58) rectangle (1.22,0.85); |
| 1339 |
\fi |
| 1340 |
% |
| 1341 |
% wine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1342 |
\ifduck@wine |
| 1343 |
\fill[cyan!10!white, rotate=-10] (0.8,0.50) ellipse[x radius=0.17, y radius=0.05]; |
| 1344 |
\fill[cyan!10!white, rotate=-10] (0.8,0.55) ellipse[x radius=0.12, y radius=0.03]; |
| 1345 |
\fill[cyan!10!white, rotate=-10] (0.8,0.7) ellipse[x radius=0.03, y radius=0.2]; |
| 1346 |
\begin{scope} |
| 1347 |
\clip[rotate=-10] (0.58,0.5) rectangle (1.02,1.03); |
| 1348 |
\fill[cyan!10!white, rotate=-10] (0.8,1.1) ellipse[x radius=0.18, y radius=0.4]; |
| 1349 |
\end{scope} |
| 1350 |
\begin{scope} |
| 1351 |
\clip[rotate=-10] (0.58,0.5) rectangle (1.02,0.87); |
| 1352 |
\fill[\duck@wine, rotate=-10] (0.8,1.1) ellipse[x radius=0.15, y radius=0.36]; |
| 1353 |
\end{scope} |
| 1354 |
\fi |
| 1355 |
% |
| 1356 |
% prison duck %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1357 |
\ifduck@prison |
| 1358 |
\fill[\duck@prison] (1.5,0.25) circle[radius=0.3]; |
| 1359 |
\fill[\duck@prison, even odd rule] (1.2,0.1) ellipse[x radius=0.10, y radius=0.07] (1.2,0.1) ellipse[x radius=0.06, y radius=0.04] (1.05,-0.05) ellipse[x radius=0.10, y radius=0.07] (1.05,-0.05) ellipse[x radius=0.06, y radius=0.04] (0.87,-0.2) ellipse[x radius=0.10, y radius=0.07] (0.87,-0.2) ellipse[x radius=0.06, y radius=0.04]; |
| 1360 |
\fill[\duck@prison, even odd rule] (0.72,-0.2) ellipse[x radius=0.10, y radius=0.07] (0.72,-0.2) ellipse[x radius=0.06, y radius=0.04]; |
| 1361 |
\fill[\duck@prison,even odd rule,rotate=70] (0.4,-1.05) ellipse[x radius=0.1, y radius=0.07] (0.4,-1.05) ellipse[x radius=0.06, y radius=0.04] (0.2,-0.95) ellipse[x radius=0.1, y radius=0.07] (0.2,-0.95) ellipse[x radius=0.06, y radius=0.04] (0.22,-0.58) ellipse[x radius=0.1, y radius=0.07] (0.22,-0.58) ellipse[x radius=0.06, y radius=0.04]; |
| 1362 |
\fill[\duck@prison,even odd rule,rotate=110](-0.33,-0.55) ellipse[x radius=0.1, y radius=0.07] (-0.33,-0.55) ellipse[x radius=0.06, y radius=0.04]; |
| 1363 |
\begin{scope} |
| 1364 |
\clip[rotate=-12] (0.45,0.15) rectangle (0.63,0.25); |
| 1365 |
\fill[\duck@prison,even odd rule,rotate=110](-0.07,-0.6) ellipse[x radius=0.1, y radius=0.07] (-0.07,-0.6) ellipse[x radius=0.06, y radius=0.04]; |
| 1366 |
\end{scope} |
| 1367 |
\fi |
| 1368 |
% |
| 1369 |
% torch %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1370 |
\ifduck@torch |
| 1371 |
\fill[red!50!yellow] \duckpathtorch; |
| 1372 |
\fill[red!25!yellow, scale=0.67, xshift=17, yshift=15] \duckpathtorch; |
| 1373 |
\fill[white!50!yellow, scale=0.4, xshift=53.5, yshift=45.3] \duckpathtorch; |
| 1374 |
\fill[\duck@torch,rounded corners=\scalingfactor*1] |
| 1375 |
(1.1,0.96) -- (0.77,0.25) -- (0.83,0.25) -- (1.3,0.86) -- cycle; |
| 1376 |
\fill[\duck@torch,rotate=-28] |
| 1377 |
(0.62,1.32) ellipse[x radius=0.2, y radius=0.08]; |
| 1378 |
\fi% |
| 1379 |
% |
| 1380 |
% sheep %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1381 |
\ifduck@sheep |
| 1382 |
\begin{scope} |
| 1383 |
\clip[rotate=-5] (1.2,1.7) ellipse[x radius=0.3, y radius=0.4]; |
| 1384 |
\fill[\duck@bill,rotate=-5] (0.8,1.5) ellipse[x radius=0.3, y radius=0.4]; |
| 1385 |
\end{scope} |
| 1386 |
\fi |
| 1387 |
% |
| 1388 |
% basket %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1389 |
\ifduck@basket |
| 1390 |
\fill[\duck@basket, start angle=180, end angle=360, x radius=0.35, y radius=0.35] (0.65,0.61) arc -- cycle; |
| 1391 |
\fill[\duck@basket, start angle=180, end angle=0, even odd rule] [x radius=0.35, y radius=0.5] (0.65,0.6) arc -- cycle [x radius=0.3, y radius=0.45] (0.7,0.6) arc -- cycle; |
| 1392 |
\fill[\duck@basket, even odd rule] (1,0.6) ellipse[x radius=0.35, y radius=0.1] (1,0.6) ellipse[x radius=0.3, y radius=0.07]; |
| 1393 |
\fill[\duck@basket!75!black] (1,0.6) ellipse[x radius=0.3, y radius=0.07]; |
| 1394 |
\fi% |
| 1395 |
% |
| 1396 |
% easter basket %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1397 |
\ifduck@easter |
| 1398 |
\begin{scope} |
| 1399 |
\clip [start angle=180, end angle=0, x radius=0.3, y radius=0.45] (0.7,0.6) arc -- cycle [start angle=180, end angle=360, x radius=0.3, y radius=0.07] (0.7,0.6) arc -- cycle; |
| 1400 |
\fill[\duck@eggb, rotate=-5] (0.95,0.72) ellipse[x radius=0.09, y radius=0.13]; |
| 1401 |
\fill[\duck@egga, rotate=10] (0.94,0.42) ellipse[x radius=0.09, y radius=0.13]; |
| 1402 |
\fill[\duck@eggc, rotate=-30] (0.7,1.08) ellipse[x radius=0.09, y radius=0.13]; |
| 1403 |
\end{scope} |
| 1404 |
\fi% |
| 1405 |
% |
| 1406 |
% horse tail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1407 |
\pgfkeys{/duck/horsetail/.@def/.get=\duck@test} |
| 1408 |
\ifx\duck@horsetail\duck@test |
| 1409 |
\ifdefined\duck@hair\let\duck@horsetail=\duck@hair\fi |
| 1410 |
\fi% |
| 1411 |
\ifduck@horsetail |
| 1412 |
\path (0.1,0.1) rectangle (2.82,2.14); |
| 1413 |
\fill[\duck@horsetail,overlay] \duckpathhorsetail; |
| 1414 |
\fi |
| 1415 |
% |
| 1416 |
% crozier %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1417 |
\ifduck@crozier |
| 1418 |
\begin{scope} |
| 1419 |
\clip [rotate=-20] (0.6,2.3) rectangle (1.1,1.999); |
| 1420 |
\fill[even odd rule,\duck@crozier] (1.5,1.6) circle[radius=0.2] (1.5,1.6) circle[radius=0.1]; |
| 1421 |
\end{scope} |
| 1422 |
\fill[\duck@crozier,rotate=-20] (0.663,0.5) rectangle (0.763,2.0); |
| 1423 |
\fi |
| 1424 |
% |
| 1425 |
% stethoscope %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1426 |
\ifduck@stethoscope |
| 1427 |
\fill[\duck@stethoscope,rounded corners=\scalingfactor*0.5,rotate=-18] (0.08,0.7) rectangle (0.13,1.24); |
| 1428 |
\fill[\duck@stethoscope] (0.35,0.7) circle[radius=0.1]; |
| 1429 |
\begin{scope} |
| 1430 |
\fill[\duck@stethoscope,rounded corners=\scalingfactor*0.5,rotate=-30] (0.53,1.3) rectangle (0.58,1.72); |
| 1431 |
\clip[rotate=-30] (0.36,0.89) -- (0.36,1.36) -- (0.79,1.36) -- (0.79,0.89) -- (0.65,0.89) -- (0.65,0.96) -- (0.5,0.96) -- (0.5,0.89) -- cycle ; |
| 1432 |
\fill [\duck@stethoscope,rounded corners=\scalingfactor*3,rotate=-30,even odd rule] (0.775,1.35) rectangle (0.375,0.9) [rounded corners=\scalingfactor*2] (0.725,1.3) rectangle (0.425,0.95); |
| 1433 |
\end{scope} |
| 1434 |
\fi |
| 1435 |
% |
| 1436 |
% snow duck %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1437 |
\ifduck@snowduck |
| 1438 |
\fill[black, rotate=-25] (0.65,0.65) rectangle (0.7,1.8); |
| 1439 |
\fill[black, rotate=35] (1.55,0.15) rectangle (1.6,0.5); |
| 1440 |
\fill[black, rotate=-35] (0.4,1.7) rectangle (0.45,2.0); |
| 1441 |
\fill[black, rotate=-60] (-0.3,2.0) rectangle (-0.35,1.65); |
| 1442 |
\fi |
| 1443 |
% |
| 1444 |
% vampire %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1445 |
\ifduck@vampire |
| 1446 |
\ifduck@laughing |
| 1447 |
\fill[\duck@vampire] (0.55,1.28) -- (0.575,1.22) -- (0.6,1.29) -- cycle; |
| 1448 |
\else |
| 1449 |
\fill[\duck@vampire] (0.6,1.20) -- (0.625,1.16) -- (0.65,1.223) -- cycle; |
| 1450 |
\fi |
| 1451 |
\fi |
| 1452 |
% |
| 1453 |
% crystal ball %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1454 |
\ifduck@crystalball |
| 1455 |
\shade[ball color=\duck@crystalball,opacity=0.7] (0.93,0.5) circle[radius=0.33]; |
| 1456 |
\fi |
| 1457 |
% |
| 1458 |
% Cheese %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1459 |
\ifduck@cheese |
| 1460 |
\begin{scope}[xshift=26,yshift=-2] |
| 1461 |
\fill[\duck@cheese] (-0.3200,0.8058) -- (0.0608,0.7220) -- (0.0608,0.6366) -- (-0.3200,0.5410) -- (0.2143,0.4236) .. controls (0.3395,0.4810) and (0.4241,0.5627) .. (0.4117,0.6253) -- (0.4117,0.7634) .. controls (0.4261,0.8618) and (0.2607,0.8954) .. (0.1907,0.8962) -- cycle; |
| 1462 |
\fill[\duck@cheese!35!white] (-0.3200,0.8057) -- (-0.3200,0.5410) -- (0.2143,0.4236) -- (0.2143,0.7381) -- cycle; |
| 1463 |
\fill[\duck@cheese] (-0.23,0.71) circle[radius=0.04] (0.0,0.55) circle[radius=0.04] (-0.23,0.58) circle[radius=0.02] (-0.15,0.6) circle[radius=0.02] (-0.1,0.7) circle[radius=0.02] (0.1,0.65) circle[radius=0.02] (0,0.65) circle[radius=0.02] (0.1,0.5) circle[radius=0.02] (0.07,0.55) circle[radius=0.01] (0.12,0.6) circle[radius=0.01] (-0.08,0.54) circle[radius=0.01]; |
| 1464 |
\end{scope} |
| 1465 |
\fi |
| 1466 |
% |
| 1467 |
% shovel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1468 |
\ifduck@shovel |
| 1469 |
\fill[brown!80!black,rotate around={-23:(0.91, 0.88)}] (0.87, 0.28) rectangle ++(0.1,1.4); |
| 1470 |
\fill[\duck@shovel] (0.6133, 0.9536) .. controls (0.8388, 0.8117) and (0.9253, 0.7517) .. (1.1962, 0.6696) -- (0.8332, 0.1263) .. controls (0.6458, 0.11) and (0.5417, 0.1644) .. (0.4517, 0.3034) -- cycle; |
| 1471 |
\fi |
| 1472 |
% |
| 1473 |
% pickaxe %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1474 |
\ifduck@pickaxe |
| 1475 |
\fill[brown!80!black,rotate around={-23:(0.91, 0.88)}] (0.87, 0.28) rectangle ++(0.1,1.4); |
| 1476 |
\fill[\duck@pickaxe] (-0.0085, 0.6858) .. controls (0.6422, 0.3523) and (0.7609, 0.3068) .. (1.4114, 0.1108) .. controls (0.6589, 0.1246) and (0.5556, 0.1887) .. (-0.0085, 0.6858) -- cycle; |
| 1477 |
\fi |
| 1478 |
% |
| 1479 |
% strawbroom %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1480 |
\ifduck@strawbroom |
| 1481 |
\fill[\duck@strawbroomstick] (0.9160,0.5478) -- (1.2792,1.6574) .. controls (1.3063,1.6961) and (1.3956,1.6649) .. (1.3688,1.6176) -- (0.9508,0.5179) .. controls (0.9360,0.5142) and (0.9202,0.5331) .. (0.9160,0.5478) -- cycle; |
| 1482 |
\fill[\duck@strawbroom] (0.5528,0.2890) .. controls (0.6449,0.3598) and (0.7460,0.5693) .. (0.8911,0.6871) .. controls (0.9481,0.7215) and (1.0395,0.6925) .. (1.0553,0.6224) .. controls (1.1219,0.4385) and (0.9965,0.2147) .. (1.0056,0.1000) .. controls (0.8926,0.0241) and (0.5950,0.2078) .. (0.5528,0.2890) -- cycle; |
| 1483 |
\draw[\duck@strawbroomribbon,line width=\scalingfactor*0.4pt] (0.7916,0.5876) .. controls (0.7916,0.5876) and (0.8210,0.5404) .. (0.8451,0.5304) .. controls (0.8708,0.5197) and (0.9021,0.5419) .. (0.9284,0.5329) .. controls (0.9544,0.5240) and (0.9663,0.4903) .. (0.9919,0.4806) .. controls (1.0148,0.4720) and (1.0653,0.4781) .. (1.0653,0.4781); |
| 1484 |
\draw[\duck@strawbroomribbon,line width=\scalingfactor*0.4pt] (0.7565,0.5493) .. controls (0.7565,0.5493) and (0.7897,0.4961) .. (0.8169,0.4848) .. controls (0.8458,0.4727) and (0.8812,0.4978) .. (0.9109,0.4876) .. controls (0.9401,0.4776) and (0.9535,0.4396) .. (0.9824,0.4287) .. controls (1.0083,0.4189) and (1.0652,0.4259) .. (1.0652,0.4259); |
| 1485 |
\fi |
| 1486 |
% |
| 1487 |
% broom %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1488 |
\ifduck@broom |
| 1489 |
\begin{scope}[rotate=-10] |
| 1490 |
\draw[\duck@broomstick,line width=\scalingfactor*1.8pt] (0.9, 1.8) -- ++(0,-1.4); |
| 1491 |
\draw[\duck@broomstick,line width=\scalingfactor*1.8pt] (0.6, 0.42) -- ++(0.6,0); |
| 1492 |
\fill[\duck@broom] (0.6, 0.40) -- ++(-0.05,-0.1) -- ++(0.7,0) -- ++(-0.05, 0.1) -- cycle; |
| 1493 |
\end{scope} |
| 1494 |
\fi |
| 1495 |
% |
| 1496 |
% umbrella %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1497 |
\ifduck@umbrella |
| 1498 |
\path (0.2,0.4) rectangle (2.22,2.7); |
| 1499 |
\fill[gray,overlay] (0.6922,0.5942) -- (0.7426,0.6103) .. controls (0.8276,0.3884) and (0.8855,0.4523) .. (0.9333,0.6543) -- (0.9334,0.6545) -- (0.9335,0.6547) .. controls (1.0347,1.0671) and (1.2906,1.9565) .. (1.2906,1.9565) -- (1.3415,1.9419) .. controls (1.3415,1.9419) and (1.0855,1.0519) .. (0.9849,0.6423) -- (0.9848,0.6420) .. controls (0.9240,0.3633) and (0.7874,0.3312) .. (0.6922,0.5942) -- cycle; |
| 1500 |
\fill[\duck@umbrella,overlay] (0.2185,1.9927) .. controls (0.3559,2.1962) and (0.6837,2.0720) .. (0.6761,1.8240) .. controls (0.8398,2.0111) and (1.1891,1.9216) .. (1.1685,1.6915) .. controls (1.3000,1.8765) and (1.6639,1.7626) .. (1.6607,1.5356) .. controls (1.7865,1.7271) and (2.1350,1.6950) .. (2.1626,1.4589) .. controls (2.4996,2.5771) and (0.5644,3.2631) .. (0.2185,1.9927) -- cycle; |
| 1501 |
\fi |
| 1502 |
% |
| 1503 |
% closed umbrella %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1504 |
\ifduck@umbrellaclosed |
| 1505 |
\fill[gray] (1.3401,0.6996) -- (1.2872,0.7019) .. controls (1.2840,0.9395) and (1.2076,0.8995) .. (1.0930,0.7264) -- (1.0929,0.7262) -- (1.0928,0.7261) .. controls (0.8555,0.3739) and (0.9223,0.4608) .. (0.9223,0.4608) -- (0.8795,0.4920) .. controls (0.8795,0.4920) and (0.8131,0.4057) .. (1.0488,0.7554) -- (1.0489,0.7556) .. controls (1.2022,0.9963) and (1.3414,0.9793) .. (1.3401,0.6996) -- cycle; |
| 1506 |
\fill[\duck@umbrellaclosed] (0.6827,0.1263) -- (0.8038,0.6188) -- (0.9548,0.6494) -- (0.9520,0.8231) -- (1.1945,0.6529) -- (1.0218,0.5885) -- (1.0465,0.4566) -- cycle; |
| 1507 |
\fi |
| 1508 |
% |
| 1509 |
% handbag %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1510 |
\ifduck@handbag |
| 1511 |
\fill[\duck@handbag] (0.7811,0.1751) -- (1.4913,0.3097) -- (1.3315,0.7086) -- (0.7832,0.6152) -- cycle; |
| 1512 |
\fill[\duck@handbag!70!black] (0.8857,0.4354) .. controls (0.7861,0.9811) and (1.1796,1.0719) .. (1.2866,0.5155) -- (1.2043,0.4996) .. controls (1.1247,0.8952) and (0.9051,0.8883) .. (0.9676,0.4536) -- cycle; |
| 1513 |
\fi |
| 1514 |
% |
| 1515 |
% cocktail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1516 |
\ifduck@cocktail |
| 1517 |
\fill[cyan!10!white, rotate=-10] (0.8,0.50) ellipse[x radius=0.17, y radius=0.05]; |
| 1518 |
\fill[cyan!10!white, rotate=-10] (0.8,0.55) ellipse[x radius=0.12, y radius=0.03]; |
| 1519 |
\fill[cyan!10!white, rotate=-10] (0.8,0.7) ellipse[x radius=0.03, y radius=0.2]; |
| 1520 |
\fill[cyan!10!white] (0.92,0.6) -- (0.75,0.9) -- (1.18,0.83) -- cycle; |
| 1521 |
\fill[gray!60!white] (0.928,0.64) -- (0.85,0.77) -- (1.08,0.77) -- cycle; |
| 1522 |
\fill[green!40!brown!60!white] (0.94,0.71) circle[radius=0.04]; |
| 1523 |
\fill[red!80!black] (0.94,0.72) circle[radius=0.01]; |
| 1524 |
\fi |
| 1525 |
% |
| 1526 |
% banana %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1527 |
\ifduck@banana |
| 1528 |
\begin{scope}[yshift=10,xshift=19,rotate=-25,scale=1.3] |
| 1529 |
\fill[\duck@banana!30!] (0.02,0) .. controls (0.21,0.20) and (0.21,0.40) .. (0.02,0.6) arc [start angle=60,end angle=120, radius =0.04] .. controls (0.07,0.40) and (0.07,0.20) .. (-0.02,0) --cycle ; |
| 1530 |
%peel |
| 1531 |
\begin{scope} |
| 1532 |
\clip (-0.04,-0.01) rectangle (0.20,0.3); |
| 1533 |
\fill[\duck@banana] (0.03,0) .. controls (0.22,0.20) and (0.22,0.40) .. (0.03,0.6) arc [start angle=60,end angle=120, radius =0.06] .. controls (0.06,0.40) and (0.06,0.20) .. (-0.03,0); |
| 1534 |
\end{scope} |
| 1535 |
\fill[\duck@banana!60!] (0.12,0.3) arc [start angle=140, end angle=-100, y radius=0.20, x radius=0.06] arc [start angle=-90, end angle=90, y radius=0.15, x radius=0.02] (0.12,0.3) arc [start angle=60, end angle=270, y radius=0.15, x radius=0.1] arc [start angle=270, end angle=90, y radius=0.13, x radius=0.04]; |
| 1536 |
\end{scope} |
| 1537 |
\fi |
| 1538 |
% |
| 1539 |
% stick %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1540 |
\ifduck@stick |
| 1541 |
\begin{scope}[rotate=-30,yshift=16,xshift=12] |
| 1542 |
%leaf |
| 1543 |
\begin{scope}[rotate=60, xshift=8.2,yshift=8.1] |
| 1544 |
\fill[\duck@leaf] (-0.01,0) .. controls (-0.1,0) and (-0.02, 0.2) .. (0,0.2) .. controls (0.02, 0.2) and (0.1,0) .. (0.01,0.0); |
| 1545 |
\path[clip] (-0.04,-0.04)-- (-0.01,0) .. controls (-0.1,0) and (-0.02, 0.2) .. (0,0.2) .. controls (0.02, 0.2) and (0.1,0) .. (0.01,0)-- (0.04,-0.04) --cycle; |
| 1546 |
\draw[\duck@leaf!80!, line width=0.1] (0,-0.04) -- (0,0.2) \foreach \i in {0.02,0.04,...,0.2} {(0,\i) -- ++(0.1,\i) (0,\i) -- ++(-0.1,\i)} ; |
| 1547 |
\end{scope} |
| 1548 |
%stick itself |
| 1549 |
\fill[\duck@stick!90!red] (-0.04,0.8) -- (-0.04,0.4) arc[start angle=345,end angle=270,radius=0.03] -- ++(0,-0.01) arc[start angle=90,end angle=15,radius=0.03] -- (-0.04,0) arc [start angle=180, end angle=360 ,x radius=0.04, y radius=0.02] -- (0.04, 0.4) arc [start angle=180, end angle=120, radius=0.08] arc [start angle=-90, end angle=90, x radius=0.02, y radius=0.04] arc [start angle=240, end angle=180, radius=0.08] -- (0.04,0.75) arc [start angle=0, end angle=120 ,x radius=0.04, y radius=0.02] --cycle; |
| 1550 |
\fill[\duck@stick!90!] (0.08, 0.51) ellipse [x radius=0.02, y radius=0.04] (0,0.75) ellipse [x radius=0.04, y radius=0.02] ; |
| 1551 |
\draw[\duck@stick!90!red, line width=0.06] (0.08, 0.51) ellipse [x radius=0.016, y radius=0.032] |
| 1552 |
ellipse [x radius=0.012, y radius=0.024] ellipse [x radius=0.008, y radius=0.016] (0,0.75) ellipse [y radius=0.016, x radius=0.032] ellipse [y radius=0.012, x radius=0.024] ellipse [y radius=0.008, x radius=0.016] ; |
| 1553 |
\fill[\duck@stick!90!red] (0.08, 0.51) ellipse [x radius=0.004, y radius=0.008] (0,0.75) ellipse [x radius=0.008, y radius=0.004]; |
| 1554 |
\end{scope} |
| 1555 |
\fi |
| 1556 |
% |
| 1557 |
% megaphone %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1558 |
\ifduck@megaphone |
| 1559 |
\fill[\duck@megaphone] (0.2,1.2) ellipse[x radius=0.05,y radius=0.1]; |
| 1560 |
\fill[\duck@megaphone] (-0.4,1.2) ellipse[x radius=0.1,y radius=0.3]; |
| 1561 |
\fill[\duck@megaphone] (0.2,1.3) -- (-0.4,1.5) -- (-0.4,0.9) -- (0.2,1.1) -- cycle; |
| 1562 |
\fill[\duck@megaphone!70!black] (-0.4,1.2) ellipse[x radius=0.07,y radius=0.25]; |
| 1563 |
\draw[line width=\scalingfactor*2pt,\duck@megaphone] (-0.05,1.05) circle [radius=0.13]; |
| 1564 |
\fi |
| 1565 |
% |
| 1566 |
% towel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1567 |
\ifduck@towel |
| 1568 |
\fill[\duck@towel] \duckpathtowel; |
| 1569 |
\fi |
| 1570 |
% |
| 1571 |
% present %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1572 |
\ifduck@present |
| 1573 |
\fill[\duck@presentbottom] (0.65,0.25) rectangle (1.25,0.8); |
| 1574 |
\fill[\duck@presenttop] (0.63,0.65) rectangle (1.27,0.85); |
| 1575 |
\fill[\duck@presentribbon] (0.9,0.25) rectangle (1.0,0.85); |
| 1576 |
\draw[\duck@presentribbon,line width=\scalingfactor*0.8pt, in=0, out=40,loop,min distance=12] (0.95,0.85) to (0.95,0.85); |
| 1577 |
\draw[\duck@presentribbon,line width=\scalingfactor*0.8pt, in=40, out=80,loop,min distance=12] (0.95,0.85) to (0.95,0.85); |
| 1578 |
\draw[\duck@presentribbon,line width=\scalingfactor*0.8pt,in=100, out=140,loop,min distance=12] (0.95,0.85) to (0.95,0.85); |
| 1579 |
\draw[\duck@presentribbon,line width=\scalingfactor*0.8pt,in=140, out=180,loop,min distance=12] (0.95,0.85) to (0.95,0.85); |
| 1580 |
\fi |
| 1581 |
% |
| 1582 |
% overleaf duck %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1583 |
\ifduck@overleaf |
| 1584 |
\fill[white] \duckpathoverleaf; |
| 1585 |
\fi |
| 1586 |
% |
| 1587 |
% wing %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1588 |
\ifduck@wing |
| 1589 |
\fill[\duck@wing] \duckpathwing; |
| 1590 |
\fi |
| 1591 |
% |
| 1592 |
% adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1593 |
\UseHook{tikzducks/foreground} |
| 1594 |
\csname duckhookforeground\endcsname |
| 1595 |
% |
| 1596 |
%\draw (current bounding box.north west) rectangle (current bounding box.south east);% For debugging bounding boxes |
| 1597 |
% |
| 1598 |
\end{scope}% |
| 1599 |
} |
| 1600 |
|
| 1601 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1602 |
% |
| 1603 |
% Random ducks |
| 1604 |
% |
| 1605 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1606 |
|
| 1607 |
\pgfmathdeclarerandomlist{head}{\duck@listhead} |
| 1608 |
\pgfmathdeclarerandomlist{accessories}{\duck@listacces} |
| 1609 |
|
| 1610 |
\def\shuffleducks{% |
| 1611 |
\pgfmathrandomitem{\head}{head}% |
| 1612 |
\edef\randomhead{\head}% |
| 1613 |
\pgfmathrandomitem{\accessories}{accessories}% |
| 1614 |
\edef\randomaccessories{\accessories}% |
| 1615 |
} |
| 1616 |
|
| 1617 |
\newcommand*{\randuck}[1][]{% |
| 1618 |
\duck[randomhead, randomaccessories,#1]% |
| 1619 |
} |
| 1620 |
|
| 1621 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1622 |
% |
| 1623 |
% Defining some of the more complicate paths for easy reuse |
| 1624 |
% |
| 1625 |
% naming scheme is \duckpath<name> |
| 1626 |
% |
| 1627 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1628 |
|
| 1629 |
% body parts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1630 |
|
| 1631 |
\def\duckpathbody{% |
| 1632 |
(0.513,1.145) .. controls (0.267, 1.102) and (-0.125,0.657) .. |
| 1633 |
(0.289,0.261) .. controls (0.704,-0.135) and ( 2.863,0.130) .. |
| 1634 |
(1.818,1.419) .. controls (0.938, 0.946) and ( 1.240,1.379) .. |
| 1635 |
(0.513,1.145) -- cycle |
| 1636 |
} |
| 1637 |
|
| 1638 |
\def\duckpathgrumpybill{% |
| 1639 |
(0.406,1.472) .. controls (0.643,1.530) and (0.643,1.530) .. |
| 1640 |
(0.800,1.300) .. controls (0.083,0.850) and (0.269,1.369) .. |
| 1641 |
(0.406,1.472) -- cycle |
| 1642 |
} |
| 1643 |
|
| 1644 |
\def\duckpathbill{% |
| 1645 |
(0.406,1.472) .. controls (0.643,1.530) and (0.541,1.303) .. |
| 1646 |
(0.910,1.370) .. controls (0.083,0.850) and (0.269,1.369) .. |
| 1647 |
(0.406,1.472) -- cycle |
| 1648 |
} |
| 1649 |
|
| 1650 |
\def\duckpathwing{% |
| 1651 |
(1.47,0.56) .. controls (1.51,0.59) and (1.57,0.62) .. |
| 1652 |
(1.60,0.66) .. controls (1.61,0.70) and (1.51,0.69) .. |
| 1653 |
(1.47,0.69) .. controls (1.48,0.72) and (1.41,0.76) .. |
| 1654 |
(1.37,0.74) .. controls (1.35,0.79) and (1.33,0.81) .. |
| 1655 |
(1.25,0.80) .. controls (1.25,0.86) and (1.18,0.88) .. |
| 1656 |
(1.15,0.88) .. controls (1.20,1.01) and (0.40,0.79) .. |
| 1657 |
(0.52,0.57) .. controls (0.63,0.26) and (1.22,0.43) .. |
| 1658 |
(1.47,0.56) -- cycle |
| 1659 |
} |
| 1660 |
|
| 1661 |
% clothing %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1662 |
|
| 1663 |
\def\duckpathtshirt{% |
| 1664 |
(0.490,1.145) .. controls (0.267, 1.102) and (-0.125,0.657) .. |
| 1665 |
(0.289,0.261) .. controls (0.704,-0.135) and ( 2.863,0.130) .. |
| 1666 |
(1.818,1.419) .. controls (0.938, 0.976) and ( 1.240,1.279) .. |
| 1667 |
(0.590,1.000) -- cycle |
| 1668 |
} |
| 1669 |
|
| 1670 |
\def\duckpathjacket{% |
| 1671 |
(0.490,1.145) .. controls (0.267, 1.102) and (-0.125,0.657) .. |
| 1672 |
(0.289,0.261) .. controls (0.704,-0.135) and ( 2.863,0.130) .. |
| 1673 |
(1.818,1.419) .. controls (0.880, 0.946) and ( 1.240,1.378) .. |
| 1674 |
(0.513,0.700) -- cycle |
| 1675 |
} |
| 1676 |
|
| 1677 |
% hair styles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1678 |
|
| 1679 |
\def\duckpathshorthair{% |
| 1680 |
(1.3947,1.4175) .. controls (1.4546,1.4518) and (1.4699,1.6566) .. |
| 1681 |
(1.4343,1.7992) .. controls (1.2528,2.5033) and (0.2339,2.2710) .. |
| 1682 |
(0.4151,1.5907) .. controls (0.4345,1.8709) and (0.7421,2.0999) .. |
| 1683 |
(0.9494,1.9054) .. controls (1.2241,1.6476) and (1.3316,1.3814) .. |
| 1684 |
(1.3947,1.4175) -- cycle |
| 1685 |
} |
| 1686 |
|
| 1687 |
\def\duckpathlonghair{% |
| 1688 |
(1.4508,0.7565) .. controls (1.5146,0.7888) and (1.5854,0.8216) .. |
| 1689 |
(1.6247,0.8831) .. controls (1.5859,0.8847) and (1.4726,0.9457) .. |
| 1690 |
(1.5587,0.9706) .. controls (1.6317,0.9685) and (1.7016,1.0046) .. |
| 1691 |
(1.7314,1.0734) .. controls (1.7931,1.1660) and (1.6616,1.1176) .. |
| 1692 |
(1.6277,1.1566) .. controls (1.6853,1.1741) and (1.7840,1.1829) .. |
| 1693 |
(1.8123,1.2244) .. controls (1.7022,1.2488) and (1.5688,1.2663) .. |
| 1694 |
(1.5063,1.3739) .. controls (1.4619,1.5143) and (1.4696,1.6649) .. |
| 1695 |
(1.4340,1.8076) .. controls (1.2524,2.5117) and (0.2335,2.2794) .. |
| 1696 |
(0.4060,1.5991) .. controls (0.4341,1.8793) and (0.6629,2.1130) .. |
| 1697 |
(0.9011,1.9578) .. controls (1.2427,1.7382) and (1.3350,1.4214) .. |
| 1698 |
(1.0905,1.0610) .. controls (1.0597,1.0109) and (1.1103,0.9166) .. |
| 1699 |
(1.1805,0.8670) .. controls (1.2507,0.8174) and (1.3503,0.7853) .. |
| 1700 |
(1.4508,0.7565) -- cycle |
| 1701 |
} |
| 1702 |
|
| 1703 |
\def\duckpathcrazyhair{% |
| 1704 |
(0.1977,1.9023) .. controls (0.2633,2.0599) and (0.4819,2.0547) .. |
| 1705 |
(0.4713,2.0879) .. controls (0.4647,2.2106) and (0.2516,2.2392) .. |
| 1706 |
(0.2516,2.2392) .. controls (0.4352,2.2933) and (0.7427,1.9304) .. |
| 1707 |
(0.5743,2.3885) .. controls (0.6017,2.3633) and (0.8307,2.1739) .. |
| 1708 |
(0.8082,2.4245) .. controls (0.8271,2.2885) and (0.9195,2.2400) .. |
| 1709 |
(0.9933,2.2673) .. controls (1.0814,2.6593) and (0.9688,2.0034) .. |
| 1710 |
(1.3350,2.3615) .. controls (1.3657,2.3292) and (1.1627,2.1043) .. |
| 1711 |
(1.3424,2.1387) .. controls (1.3102,1.8312) and (1.5049,2.2623) .. |
| 1712 |
(1.5049,2.2623) .. controls (1.5049,2.2623) and (1.4675,2.0493) .. |
| 1713 |
(1.4287,1.9560) .. controls (1.4287,1.9560) and (1.6830,1.9470) .. |
| 1714 |
(1.7178,1.8823) .. controls (1.1926,1.8054) and (2.0160,1.7277) .. |
| 1715 |
(1.4923,1.7275) .. controls (1.5366,1.6685) and (1.3013,1.6009) .. |
| 1716 |
(1.6500,1.5946) .. controls (0.8836,1.5797) and (1.2764,1.9221) .. |
| 1717 |
(0.8957,2.0442) .. controls (0.5516,2.0958) and (0.5228,1.8527) .. |
| 1718 |
(0.4695,1.7963) .. controls (0.4825,1.9607) and (0.3601,1.9095) .. |
| 1719 |
(0.1977,1.9023) -- cycle |
| 1720 |
} |
| 1721 |
|
| 1722 |
\def\duckpathrecedinghair{% |
| 1723 |
(1.3385,1.4841) .. controls (1.4243,1.4529) and (1.4877,1.7127) .. |
| 1724 |
(1.3964,1.8658) .. controls (1.1071,2.3511) and (0.5189,2.1609) .. |
| 1725 |
(0.4381,1.6816) .. controls (0.4575,1.9618) and (0.9007,2.2059) .. |
| 1726 |
(1.1308,2.0390) .. controls (1.4703,1.7469) and (1.0343,1.5949) .. |
| 1727 |
(1.3385,1.4841) -- cycle |
| 1728 |
} |
| 1729 |
|
| 1730 |
\def\duckpathmohican{% |
| 1731 |
(0.7632,1.7935) .. controls (0.9223,2.3084) and (1.3870,1.8580) .. |
| 1732 |
(1.3920,1.5854) .. controls (1.4233,2.1466) and (0.6812,2.5808) .. |
| 1733 |
(0.6725,1.8166) .. controls (0.6725,1.8166) and (0.7615,1.7926) .. |
| 1734 |
(0.7632,1.7935) -- cycle |
| 1735 |
} |
| 1736 |
|
| 1737 |
\def\duckpathmullet{% |
| 1738 |
(1.3723,1.2684) .. controls (1.3723,1.2684) and (1.5129,1.5571) .. |
| 1739 |
(1.4435,1.7815) .. controls (1.2652,2.3572) and (0.3342,2.2633) .. |
| 1740 |
(0.4106,1.5424) .. controls (0.4204,1.6825) and (0.5692,1.9195) .. |
| 1741 |
(0.5692,1.9195) .. controls (0.5692,1.9195) and (0.8475,1.8402) .. |
| 1742 |
(1.1031,1.7844) .. controls (1.0808,1.6260) and (1.1130,1.4754) .. |
| 1743 |
(1.1130,1.4754) .. controls (1.1956,1.4198) and (1.3001,1.3369) .. |
| 1744 |
(1.3723,1.2684) -- cycle |
| 1745 |
} |
| 1746 |
|
| 1747 |
% Accessories %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1748 |
|
| 1749 |
\def\duckpathqueencrown{% |
| 1750 |
(0.7370,2.0732) .. controls (0.6966,2.2091) and (0.6769,2.3503) .. |
| 1751 |
(0.6354,2.4859) .. controls (0.6149,2.5164) and (0.5958,2.5732) .. |
| 1752 |
(0.6498,2.5808) .. controls (0.6973,2.5907) and (0.7091,2.5350) .. |
| 1753 |
(0.6926,2.5016) .. controls (0.6967,2.4544) and (0.7188,2.4109) .. |
| 1754 |
(0.7340,2.3665) .. controls (0.7415,2.3472) and (0.7619,2.2862) .. |
| 1755 |
(0.7676,2.3381) .. controls (0.7755,2.3852) and (0.7871,2.4329) .. |
| 1756 |
(0.7833,2.4808) .. controls (0.7597,2.5148) and (0.7834,2.5720) .. |
| 1757 |
(0.8294,2.5570) .. controls (0.8775,2.5457) and (0.8536,2.4937) .. |
| 1758 |
(0.8436,2.4638) .. controls (0.8502,2.3973) and (0.8640,2.3313) .. |
| 1759 |
(0.8798,2.2664) .. controls (0.9047,2.2750) and (0.9168,2.3261) .. |
| 1760 |
(0.9342,2.3514) .. controls (0.9492,2.3853) and (0.9714,2.4171) .. |
| 1761 |
(0.9773,2.4540) .. controls (0.9645,2.4873) and (0.9766,2.5358) .. |
| 1762 |
(1.0204,2.5303) .. controls (1.0646,2.5298) and (1.0691,2.4725) .. |
| 1763 |
(1.0443,2.4460) .. controls (1.0440,2.3935) and (1.0580,2.3419) .. |
| 1764 |
(1.0671,2.2905) .. controls (1.0706,2.2719) and (1.0788,2.2126) .. |
| 1765 |
(1.0985,2.2554) .. controls (1.1269,2.3087) and (1.1558,2.3623) .. |
| 1766 |
(1.1772,2.4187) .. controls (1.1697,2.4515) and (1.1716,2.5081) .. |
| 1767 |
(1.2210,2.5018) .. controls (1.2706,2.4969) and (1.2686,2.4403) .. |
| 1768 |
(1.2406,2.4126) .. controls (1.2279,2.3600) and (1.2211,2.3057) .. |
| 1769 |
(1.2172,2.2518) .. controls (1.2296,2.2439) and (1.2538,2.2943) .. |
| 1770 |
(1.2693,2.3112) .. controls (1.2908,2.3467) and (1.3228,2.3784) .. |
| 1771 |
(1.3316,2.4200) .. controls (1.3203,2.4624) and (1.3708,2.5014) .. |
| 1772 |
(1.4051,2.4678) .. controls (1.4448,2.4342) and (1.3945,2.3994) .. |
| 1773 |
(1.3765,2.3710) .. controls (1.3022,2.2536) and (1.2440,2.1265) .. |
| 1774 |
(1.1686,2.0097) .. controls (0.9649,1.9465) and (0.8367,1.9955) .. |
| 1775 |
(0.7370,2.0732) -- cycle |
| 1776 |
} |
| 1777 |
|
| 1778 |
\def\duckpathkingcrown{% |
| 1779 |
(0.6572,2.0396) .. controls (0.6637,2.0838) and (0.6716,2.1289) .. |
| 1780 |
(0.6684,2.1735) .. controls (0.6481,2.2496) and (0.5923,2.3131) .. |
| 1781 |
(0.5818,2.3921) .. controls (0.5738,2.4607) and (0.6167,2.5343) .. |
| 1782 |
(0.6862,2.5502) .. controls (0.7548,2.5703) and (0.8210,2.5304) .. |
| 1783 |
(0.8720,2.4881) .. controls (0.8984,2.4712) and (0.9239,2.4324) .. |
| 1784 |
(0.9486,2.4249) .. controls (0.9524,2.4691) and (0.9566,2.5158) .. |
| 1785 |
(0.9844,2.5527) .. controls (1.0052,2.5845) and (1.0390,2.6282) .. |
| 1786 |
(1.0820,2.6127) .. controls (1.1212,2.5899) and (1.1378,2.5421) .. |
| 1787 |
(1.1478,2.5003) .. controls (1.1576,2.4639) and (1.1336,2.4180) .. |
| 1788 |
(1.1349,2.3906) .. controls (1.2050,2.4269) and (1.2847,2.4629) .. |
| 1789 |
(1.3654,2.4429) .. controls (1.4292,2.4285) and (1.4864,2.3679) .. |
| 1790 |
(1.4793,2.2998) .. controls (1.4859,2.2404) and (1.4407,2.1925) .. |
| 1791 |
(1.4006,2.1551) .. controls (1.3681,2.1232) and (1.3290,2.0951) .. |
| 1792 |
(1.3072,2.0544) .. controls (1.2904,2.0121) and (1.2805,1.9674) .. |
| 1793 |
(1.2738,1.9225) .. controls (1.1221,1.8892) and (0.9586,1.8836) .. |
| 1794 |
(0.8112,1.9386) .. controls (0.7535,1.9608) and (0.6999,1.9945) .. |
| 1795 |
(0.6572,2.0396) -- cycle |
| 1796 |
} |
| 1797 |
|
| 1798 |
\def\duckpathdarthvader{% |
| 1799 |
(0.4264,1.9092) .. controls (0.4347,1.9248) and (0.4612,1.9186) .. |
| 1800 |
(0.4969,1.9783) .. controls (0.5499,2.0670) and (0.7559,2.2377) .. |
| 1801 |
(0.9889,2.2057) .. controls (1.2691,2.1668) and (1.4075,1.8829) .. |
| 1802 |
(1.4176,1.7421) .. controls (1.4279,1.5955) and (1.5246,1.3484) .. |
| 1803 |
(1.5246,1.3484) -- |
| 1804 |
(0.9846,1.2036) .. controls (1.0898,1.2735) and (1.0667,1.5598) .. |
| 1805 |
(1.0555,1.6034) .. controls (0.9758,1.9147) and (0.8121,1.8681) .. |
| 1806 |
(0.7174,1.7694) .. controls (0.5671,2.0370) and (0.4103,1.7556) .. |
| 1807 |
(0.4132,1.472) -- |
| 1808 |
(0.3529,1.415) .. controls (0.3529,1.43938) and (0.3893,1.8379).. |
| 1809 |
(0.4264,1.9092) -- cycle |
| 1810 |
} |
| 1811 |
|
| 1812 |
\def\duckpathhorsetail{% |
| 1813 |
(1.7248,1.3553) .. controls (2.0530,1.3369) and (2.1427,1.1604) .. |
| 1814 |
(2.2915,0.9970) .. controls (2.4759,0.7946) and (2.9531,0.8890) .. |
| 1815 |
(2.7668,0.9003) .. controls (2.4670,0.9184) and (2.5158,1.1488) .. |
| 1816 |
(2.3907,1.3152) .. controls (2.2788,1.4641) and (1.9414,1.5945) .. |
| 1817 |
(1.7248,1.3553) -- cycle |
| 1818 |
} |
| 1819 |
|
| 1820 |
\def\duckpathcape{% |
| 1821 |
(0.225,0.966) .. controls (1.314,0.961) and (2.070,0.650) .. |
| 1822 |
(2.042,1.245) .. controls (1.863,1.164) and (1.844,1.173) .. |
| 1823 |
(1.792,1.340) .. controls (1.635,1.235) and (1.620,1.268) .. |
| 1824 |
(1.567,1.393) .. controls (1.358,1.086) and (0.664,1.096) .. |
| 1825 |
(0.460,1.110) .. controls (0.461,1.133) and (0.305,1.077) .. |
| 1826 |
(0.235,0.966) -- cycle |
| 1827 |
} |
| 1828 |
|
| 1829 |
\def\duckpathcrown{% |
| 1830 |
(0.7365,2.0616) .. controls (0.7365,2.0616) and (0.7771,2.1763) .. |
| 1831 |
(0.6959,2.4650) -- (0.8895,2.2378) -- (1.0391,2.3943) -- |
| 1832 |
(1.1260,2.1961) -- |
| 1833 |
(1.3938,2.3318) .. controls (1.1927,2.1132) and (1.2194,1.9764) .. |
| 1834 |
(1.2194,1.9764) .. controls (1.0774,1.9202) and (0.8507,1.9601) .. |
| 1835 |
(0.7365,2.0616) -- cycle |
| 1836 |
} |
| 1837 |
|
| 1838 |
\def\duckpathtorch{% |
| 1839 |
(1.4338,1.0258) .. controls (1.4308,0.8877) and (1.3468,0.8997) .. |
| 1840 |
(1.2447,0.7481) .. controls (1.1427,0.8982) and (1.0721,0.8892) .. |
| 1841 |
(1.0646,1.0243) .. controls (1.0541,1.1714) and (1.2642,1.1654) .. |
| 1842 |
(1.2492,1.3860) .. controls (1.3093,1.3110) and (1.4383,1.2705) .. |
| 1843 |
(1.4338,1.0258) -- cycle |
| 1844 |
} |
| 1845 |
|
| 1846 |
\def\duckpathoverleaf{% |
| 1847 |
(1.2699,0.6095) .. controls (1.2710,0.5992) and (1.2752,0.5910) .. (1.2822,0.5852) .. controls (1.2892,0.5793) and (1.2983,0.5763) .. (1.3095,0.5763) .. controls (1.3165,0.5762) and (1.3233,0.5778) .. (1.3295,0.5809) .. controls (1.3353,0.5840) and (1.3401,0.5885) .. (1.3436,0.5940) -- (1.3792,0.5940) .. controls (1.3731,0.5785) and (1.3640,0.5664) .. (1.3521,0.5578) .. controls (1.3398,0.5492) and (1.3252,0.5447) .. (1.3103,0.5449) .. controls (1.3002,0.5448) and (1.2902,0.5467) .. (1.2808,0.5505) .. controls (1.2718,0.5544) and (1.2636,0.5601) .. (1.2567,0.5672) .. controls (1.2500,0.5742) and (1.2446,0.5825) .. (1.2410,0.5915) .. controls (1.2372,0.6005) and (1.2353,0.6101) .. (1.2353,0.6198) .. controls (1.2352,0.6294) and (1.2370,0.6389) .. (1.2404,0.6479) .. controls (1.2438,0.6567) and (1.2489,0.6647) .. (1.2554,0.6715) .. controls (1.2625,0.6790) and (1.2709,0.6850) .. (1.2802,0.6892) .. controls (1.2891,0.6933) and (1.2988,0.6954) .. (1.3086,0.6955) .. controls (1.3207,0.6955) and (1.3325,0.6926) .. (1.3432,0.6871) .. controls (1.3540,0.6813) and (1.3633,0.6732) .. (1.3705,0.6634) .. controls (1.3751,0.6571) and (1.3786,0.6501) .. (1.3807,0.6427) .. controls (1.3831,0.6341) and (1.3842,0.6253) .. (1.3841,0.6164) .. controls (1.3840,0.6139) and (1.3839,0.6119) .. (1.3837,0.6092) .. controls (1.3458,0.6093) and (1.3079,0.6094) .. (1.2699,0.6095) -- cycle(1.3486,0.6358) .. controls (1.3458,0.6453) and (1.3410,0.6525) .. (1.3343,0.6575) .. controls (1.3276,0.6625) and (1.3192,0.6650) .. (1.3090,0.6650) .. controls (1.3004,0.6651) and (1.2920,0.6622) .. (1.2852,0.6570) .. controls (1.2783,0.6517) and (1.2733,0.6443) .. (1.2711,0.6359) .. controls (1.2969,0.6359) and (1.3228,0.6358) .. (1.3486,0.6358) -- cycle(1.5160,0.5487) -- (1.5160,0.5662) .. controls (1.5122,0.5593) and (1.5064,0.5538) .. (1.4992,0.5505) .. controls (1.4920,0.5471) and (1.4828,0.5455) .. (1.4715,0.5455) .. controls (1.4505,0.5455) and (1.4329,0.5527) .. (1.4187,0.5670) .. controls (1.4046,0.5814) and (1.3976,0.5993) .. (1.3975,0.6206) .. controls (1.3975,0.6303) and (1.3993,0.6401) .. (1.4029,0.6492) .. controls (1.4063,0.6580) and (1.4114,0.6661) .. (1.4180,0.6729) .. controls (1.4246,0.6801) and (1.4327,0.6857) .. (1.4416,0.6895) .. controls (1.4509,0.6932) and (1.4608,0.6950) .. (1.4708,0.6949) .. controls (1.4800,0.6951) and (1.4891,0.6933) .. (1.4976,0.6896) .. controls (1.5050,0.6862) and (1.5112,0.6807) .. (1.5156,0.6739) -- (1.5156,0.6911) -- (1.5480,0.6911) -- (1.5480,0.5485) -- (1.5160,0.5485) -- (1.5160,0.5487) -- cycle(1.4436,0.5910) .. controls (1.4513,0.5831) and (1.4619,0.5787) .. (1.4729,0.5789) .. controls (1.4833,0.5789) and (1.4926,0.5829) .. (1.5006,0.5911) .. controls (1.5083,0.5986) and (1.5126,0.6088) .. (1.5126,0.6196) .. controls (1.5127,0.6307) and (1.5084,0.6414) .. (1.5006,0.6494) .. controls (1.4926,0.6577) and (1.4833,0.6619) .. (1.4727,0.6619) .. controls (1.4618,0.6621) and (1.4514,0.6577) .. (1.4439,0.6499) .. controls (1.4361,0.6423) and (1.4318,0.6318) .. (1.4317,0.6205) .. controls (1.4315,0.6092) and (1.4355,0.5991) .. (1.4436,0.5910) -- cycle(1.6366,0.6913) -- (1.6366,0.6617) -- (1.6127,0.6617) -- (1.6127,0.5487) -- (1.5806,0.5487) -- (1.5806,0.6617) -- (1.5637,0.6617) -- (1.5637,0.6913) -- (1.5796,0.6913) -- (1.5796,0.6952) .. controls (1.5796,0.7102) and (1.5838,0.7214) .. (1.5922,0.7288) .. controls (1.6005,0.7362) and (1.6131,0.7399) .. (1.6300,0.7399) .. controls (1.6324,0.7398) and (1.6347,0.7396) .. (1.6370,0.7395) -- (1.6370,0.7097) -- (1.6347,0.7097) .. controls (1.6272,0.7097) and (1.6218,0.7084) .. (1.6186,0.7059) .. controls (1.6154,0.7034) and (1.6138,0.6993) .. (1.6138,0.6936) -- (1.6138,0.6910) .. controls (1.6214,0.6913) and (1.6290,0.6912) .. (1.6366,0.6913) -- cycle(1.1906,0.5487) -- (1.2231,0.5487) -- (1.2231,0.7374) -- (1.1906,0.7374) -- cycle(0.9820,0.6095) .. controls (0.9831,0.5992) and (0.9872,0.5910) .. (0.9943,0.5852) .. controls (1.0013,0.5793) and (1.0104,0.5763) .. (1.0216,0.5763) .. controls (1.0285,0.5762) and (1.0354,0.5778) .. (1.0416,0.5809) .. controls (1.0474,0.5839) and (1.0522,0.5885) .. (1.0556,0.5940) -- (1.0914,0.5940) .. controls (1.0854,0.5785) and (1.0763,0.5664) .. (1.0643,0.5578) .. controls (1.0522,0.5492) and (1.0382,0.5449) .. (1.0225,0.5449) .. controls (1.0124,0.5448) and (1.0024,0.5467) .. (0.9931,0.5505) .. controls (0.9840,0.5544) and (0.9758,0.5601) .. (0.9690,0.5672) .. controls (0.9622,0.5742) and (0.9569,0.5825) .. (0.9532,0.5915) .. controls (0.9495,0.6005) and (0.9475,0.6101) .. (0.9475,0.6198) .. controls (0.9475,0.6294) and (0.9492,0.6389) .. (0.9527,0.6479) .. controls (0.9560,0.6567) and (0.9611,0.6647) .. (0.9677,0.6715) .. controls (0.9747,0.6790) and (0.9830,0.6850) .. (0.9924,0.6892) .. controls (1.0012,0.6933) and (1.0109,0.6955) .. (1.0207,0.6955) .. controls (1.0327,0.6955) and (1.0446,0.6927) .. (1.0552,0.6871) .. controls (1.0660,0.6813) and (1.0753,0.6732) .. (1.0826,0.6634) .. controls (1.0871,0.6571) and (1.0906,0.6501) .. (1.0926,0.6427) .. controls (1.0949,0.6341) and (1.0960,0.6253) .. (1.0959,0.6164) .. controls (1.0959,0.6139) and (1.0957,0.6119) .. (1.0956,0.6092) .. controls (1.0577,0.6100) and (1.0199,0.6095) .. (0.9820,0.6095) -- cycle(1.0606,0.6358) .. controls (1.0578,0.6453) and (1.0531,0.6526) .. (1.0463,0.6575) .. controls (1.0397,0.6625) and (1.0312,0.6650) .. (1.0210,0.6650) .. controls (1.0124,0.6651) and (1.0041,0.6622) .. (0.9973,0.6570) .. controls (0.9903,0.6517) and (0.9853,0.6443) .. (0.9830,0.6359) .. controls (1.0089,0.6359) and (1.0348,0.6358) .. (1.0606,0.6358) -- cycle(1.1761,0.6624) .. controls (1.1632,0.6614) and (1.1542,0.6580) .. (1.1492,0.6523) .. controls (1.1441,0.6465) and (1.1415,0.6363) .. (1.1415,0.6214) -- (1.1415,0.5487) -- (1.1083,0.5487) -- (1.1083,0.6913) -- (1.1394,0.6913) -- (1.1394,0.6748) .. controls (1.1438,0.6808) and (1.1494,0.6856) .. (1.1559,0.6891) .. controls (1.1621,0.6923) and (1.1690,0.6938) .. (1.1760,0.6937) .. controls (1.1760,0.6833) and (1.1761,0.6728) .. (1.1761,0.6624) -- cycle(0.8646,0.8092) .. controls (0.8244,0.8248) and (0.6787,0.8306) .. (0.6784,0.7437) .. controls (0.6359,0.7165) and (0.6078,0.6721) .. (0.6078,0.6246) .. controls (0.6077,0.5410) and (0.7016,0.4916) .. (0.7705,0.5391) .. controls (0.8394,0.5866) and (0.8268,0.6919) .. (0.7486,0.7217) .. controls (0.7411,0.7246) and (0.7248,0.7297) .. (0.7117,0.7286) .. controls (0.6931,0.7168) and (0.6704,0.6924) .. (0.6597,0.6682) .. controls (0.6918,0.7064) and (0.7528,0.6983) .. (0.7737,0.6530) .. controls (0.7947,0.6076) and (0.7614,0.5559) .. (0.7115,0.5562) .. controls (0.6914,0.5562) and (0.6724,0.5649) .. (0.6594,0.5802) .. controls (0.6410,0.6019) and (0.6363,0.6254) .. (0.6400,0.6484) .. controls (0.6532,0.7289) and (0.7487,0.7748) .. (0.8197,0.7924) .. controls (0.7966,0.7801) and (0.7548,0.7600) .. (0.7255,0.7380) .. controls (0.8108,0.7051) and (0.8246,0.7770) .. (0.8646,0.8092) -- cycle(0.8731,0.5487) -- (0.8189,0.6913) -- (0.8542,0.6913) -- (0.8874,0.5965) -- (0.9217,0.6913) -- (0.9561,0.6913) -- (0.8991,0.5487) -- cycle |
| 1848 |
} |
| 1849 |
|
| 1850 |
\def\duckpathtowel{ |
| 1851 |
(0.6457, 0.9482).. controls (0.6509, 1.028) and (1.3581, 1.0564) .. (1.3736, 0.9841).. controls (1.4459, 0.6474) and (1.3166, 0.8398) .. (1.4272, 0.3739).. controls (1.3567, 0.243) and (1.2095, 0.2817) .. (1.0938, 0.2664).. controls (0.9612, 0.2488) and (0.9142, 0.1883) .. (0.693, 0.286).. controls (0.7014, 0.7758) and (0.6221, 0.5838) .. (0.6457, 0.9482) -- cycle |
| 1852 |
} |
| 1853 |
|
| 1854 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1855 |
% |
| 1856 |
% Picture mode ducks |
| 1857 |
% |
| 1858 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1859 |
|
| 1860 |
\def\picduck{% |
| 1861 |
% bill %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1862 |
\qbezier(6.5,29.5)(-1,17.5)(16.8,27.3) |
| 1863 |
\qbezier(6.5,29.5)(9,30.5)(11.4,28.0) |
| 1864 |
\qbezier(11.4,28.0)(13.5,26.5)(16.8,27.3) |
| 1865 |
% head %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1866 |
\qbezier(06.5,29.5)(6,41.5)(16.8,42.4) |
| 1867 |
\qbezier(16.8,42.4)(29,41)(25.3,24) |
| 1868 |
% body %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1869 |
\qbezier(7.8,23.2)(8,22.8)(8,22.5) |
| 1870 |
\qbezier(8,22.5)(-5,9)(8,3) |
| 1871 |
\qbezier(8,3)(22,-2)(35,6.5) |
| 1872 |
\qbezier(35,6.5)(46,15)(35,28.3) |
| 1873 |
\qbezier(35,28.3)(30,25)(25.3,24) |
| 1874 |
% right eye %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1875 |
\qbezier(13,32)(13.8,34.5)(16,34) |
| 1876 |
\qbezier(16,34)(17.3,33.2)(16.7,31) |
| 1877 |
\qbezier(16.7,31)(16,29.1)(14.5,29.3) |
| 1878 |
\qbezier(14.5,29.3)(12.7,29.5)(13,32) |
| 1879 |
\put(15.3,31.3){\circle*{1.8}} |
| 1880 |
% left eye %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1881 |
\qbezier(7.7,33.2)(8.4,35.7)(10.3,35) |
| 1882 |
\qbezier(10.3,35)(11.2,34)(10.4,32.2) |
| 1883 |
\qbezier(10.4,32.2)(9.7,30.7)(8.7,30.7) |
| 1884 |
\qbezier(8.7,30.7)(7.2,30.9)(7.7,33.2) |
| 1885 |
\put(9.5,32.7){\circle*{1.5}} |
| 1886 |
} |
| 1887 |
|
| 1888 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1889 |
% |
| 1890 |
% stripes for sports jerseys |
| 1891 |
% |
| 1892 |
% code contributed by Carla Maggi |
| 1893 |
% https://tex.stackexchange.com/a/387126/36296 |
| 1894 |
% |
| 1895 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1896 |
|
| 1897 |
\tikzset{ |
| 1898 |
/stripes/.cd, |
| 1899 |
color/.code = \def\stripes@color{#1}, |
| 1900 |
distance/.code = \def\stripes@distance{#1}, |
| 1901 |
width/.code = \def\stripes@width{#1}, |
| 1902 |
height/.code = \def\stripes@height{#1}, |
| 1903 |
initialx/.code = \def\stripes@initialx{#1}, |
| 1904 |
initialy/.code = \def\stripes@initialy{#1}, |
| 1905 |
rotate/.code = \def\stripes@rotate{#1}, |
| 1906 |
emblem/.code = \def\stripes@emblem{#1}, |
| 1907 |
% setting defaults %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1908 |
color = black, |
| 1909 |
distance = 0.3, |
| 1910 |
width = 0.15, |
| 1911 |
height = 2.7, |
| 1912 |
initialx = 0.1, |
| 1913 |
initialy = -0.3, |
| 1914 |
rotate = -10, |
| 1915 |
emblem = \empty |
| 1916 |
} |
| 1917 |
|
| 1918 |
\newcommand*{\stripes}[1][]{% |
| 1919 |
\tikzset{/stripes/.cd,#1}% |
| 1920 |
\path (0.1,0.1) rectangle (2.1,1.45); |
| 1921 |
\begin{pgfinterruptboundingbox} |
| 1922 |
\begin{scope} |
| 1923 |
\clip \duckpathjacket; |
| 1924 |
\foreach \shifta in {0,\stripes@distance,...,2.4}{% |
| 1925 |
\fill[\stripes@color,rotate around={\stripes@rotate:(1.2,0.9)}] |
| 1926 |
($(\stripes@initialx,\stripes@initialy)+(\shifta,0)$) rectangle ($(\stripes@initialx,\stripes@initialy)+(\shifta,0)+(\stripes@width,\stripes@height)$); |
| 1927 |
} |
| 1928 |
\end{scope} |
| 1929 |
\end{pgfinterruptboundingbox} |
| 1930 |
\node at (wing) {\stripes@emblem }; |
| 1931 |
} |