| 1 |
% handsdef.mf |
| 2 |
% Defines the actual pointing hand |
| 3 |
% Standard hand points to the right |
| 4 |
|
| 5 |
def handpointing= |
| 6 |
% define points for thumb and cuff |
| 7 |
x1=x3=1/2[0,1/15w]; |
| 8 |
x2=x5=x4=x23=4/16w; |
| 9 |
y1=y2=10/15[-desc,cap]; |
| 10 |
y3=y4=2/15[-desc,cap]; |
| 11 |
y5=6/7[y4,y2]; y23=1/7[y4,y2]; |
| 12 |
x6=9.75/16w; |
| 13 |
y6=y2; |
| 14 |
x7=11.25/16w; |
| 15 |
y7=4/5[y23,y5]; |
| 16 |
x8=8.75/16w; |
| 17 |
y8=1/4[y7,y6]; |
| 18 |
x17=14.5/16w; |
| 19 |
y17=9.25/15[-desc,cap]; |
| 20 |
|
| 21 |
% find a point at a certain height on |
| 22 |
% the curve from z6 to z7 |
| 23 |
path dummyCurve; path dummyLine; |
| 24 |
x.dummy=1/2[x8,x7]; |
| 25 |
y.dummy=y17; |
| 26 |
dummyCurve:=z6{z5-z2}..z7..tension1.4..z8; |
| 27 |
dummyLine:=z.dummy--z17; |
| 28 |
z18=dummyCurve intersectionpoint dummyLine; |
| 29 |
|
| 30 |
x16=x17; |
| 31 |
y16=y7; |
| 32 |
x9=7/16w; |
| 33 |
y9=y8; |
| 34 |
x10=6/16w; |
| 35 |
y10=2/5[y23,y5]; |
| 36 |
|
| 37 |
% find another point on the |
| 38 |
% curve from z6 to z7 |
| 39 |
x.dummy2=x5; |
| 40 |
y.dummy2=y16; |
| 41 |
x.dummy3:=1/2[x8,x7]; |
| 42 |
y.dummy3=y.dummy2; |
| 43 |
dummyLine:=z.dummy3--z.dummy2; |
| 44 |
z12=dummyCurve intersectionpoint dummyLine; |
| 45 |
|
| 46 |
% define points for curled fingers |
| 47 |
x15=x14=x19=x22=1/3[x18,x17]; |
| 48 |
x13=x20=x21=x12; |
| 49 |
y15=y16; |
| 50 |
y13=y14=y15-(y17-y16); |
| 51 |
y20=y19=y13-(y17-y16); |
| 52 |
y21=y22=y20-(y17-y16); |
| 53 |
|
| 54 |
% pick up pen and draw whole image |
| 55 |
pickup pencircle scaled thinline; |
| 56 |
draw z1--z2--z4--z3--cycle; |
| 57 |
draw z5{(1,1)}..tension 1.5..z6 |
| 58 |
&z6{z5-z2}..z7..tension 1.4..z8 |
| 59 |
&z8{down}..tension 3..z9 |
| 60 |
&z9..tension 1.8..{left}z10; |
| 61 |
draw z18--z17{right}..z16--z7; |
| 62 |
draw z7--z15{right}..z14--z13{left}..z12; |
| 63 |
draw z14{right}..z19--z20{left}..z13; |
| 64 |
draw z19{right}..z22--z21{left}..z20; |
| 65 |
draw z21{(-1,-1)}..tension 1.5..z23; |
| 66 |
enddef; |