|
124 | 124 | \thing@ini[acces]{handbag} |
125 | 125 | \thing@ini[acces]{stick} |
126 | 126 | \thing@ini[acces]{towel} |
| 127 | +\thing@ini[acces]{present} |
127 | 128 |
|
128 | 129 | \tikzset{% |
129 | 130 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
137 | 138 | randomhead/.code = \shufflethings, |
138 | 139 | randomhead/.forward to = /thing/\randomhead, |
139 | 140 | randomaccessories/.code = \shufflethings, |
140 | | - randomaccessories/.forward to = /thing/\randomaccessories, |
| 141 | + randomaccessories/.forward to = /thing/\randomaccessories, |
141 | 142 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
142 | 143 | % |
143 | 144 | % Hats |
|
373 | 374 | towel/.code = \thing@toweltrue |
374 | 375 | \def\thing@towel{#1}, |
375 | 376 | towel/.default = violet, |
| 377 | + present/.code = \thing@presenttrue |
| 378 | + \def\thing@present{#1}, |
| 379 | + present/.default = violet, |
| 380 | + presenttop/.code = \def\thing@presenttop{#1}, |
| 381 | + presenttop = \thing@present!70, |
| 382 | + present top/.forward to = /thing/presenttop, |
| 383 | + presentbottom/.code = \def\thing@presentbottom{#1}, |
| 384 | + presentbottom = \thing@present!80, |
| 385 | + present bottom/.forward to = /thing/presentbottom, |
| 386 | + presentribbon/.code = \def\thing@presentribbon{#1}, |
| 387 | + presentribbon = \thing@present, |
| 388 | + present ribbon/.forward to = /thing/presentribbon, |
376 | 389 | } |
377 | 390 |
|
378 | 391 | \def\thing@draw{% |
|
945 | 958 | \end{scope} |
946 | 959 | \fi |
947 | 960 | % |
| 961 | +% present %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 962 | +\ifthing@present |
| 963 | + \fill[\thing@presentbottom] (-0.3, 0.35) rectangle (0.3, 0.9); |
| 964 | + \fill[\thing@presenttop] (-0.32, 0.75) rectangle (0.32, 0.95); |
| 965 | + \fill[\thing@presentribbon] (-0.05, 0.35) rectangle (0.05, 0.95); |
| 966 | + \draw[\thing@presentribbon,line width=\scalingfactor*0.8pt, in=0, out=40,loop,min distance=12] (0, 0.95) to (0, 0.95); |
| 967 | + \draw[\thing@presentribbon,line width=\scalingfactor*0.8pt, in=40, out=80,loop,min distance=12] (0, 0.95) to (0, 0.95); |
| 968 | + \draw[\thing@presentribbon,line width=\scalingfactor*0.8pt,in=100, out=140,loop,min distance=12] (0, 0.95) to (0, 0.95); |
| 969 | + \draw[\thing@presentribbon,line width=\scalingfactor*0.8pt,in=140, out=180,loop,min distance=12] (0, 0.95) to (0, 0.95); |
| 970 | +\fi |
948 | 971 | } |
949 | 972 |
|
950 | 973 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
0 commit comments