| 1 |
% +AMDG This document was begun on 21 June 11EX, the feast |
| 2 |
% of St. William the Abbot, and it is humbly dedicated to |
| 3 |
% him and to the Immaculate Heart of Mary for their prayers, |
| 4 |
% and to the Sacred Heart of Jesus for His mercy. |
| 5 |
|
| 6 |
beginchar("a",ornshort#+2ss#,ornheight#+2ss#,0); |
| 7 |
|
| 8 |
% draw the border of the ornament |
| 9 |
pickup borderpen; |
| 10 |
top lft z20 = (ss,h-ss); top rt z21 = (w-ss,h-ss); |
| 11 |
bot rt z22 = (w-ss,ss); bot lft z23 = (ss,ss); |
| 12 |
draw z20--z21--z22--z23--cycle; |
| 13 |
|
| 14 |
% path for the ellipse in the center construct |
| 15 |
z0 = (-centerwid/2,0); |
| 16 |
z1 = (centerwid/2,0); |
| 17 |
z2 = z0 shifted (0,centerht/2); |
| 18 |
z3 = z0 shifted (0,-centerht/2); |
| 19 |
z4 = z1 shifted (0,centerht/2); |
| 20 |
z5 = z1 shifted (0,-centerht/2); |
| 21 |
z6 = z0 shifted (-ccurvrad,0); |
| 22 |
z7 = z1 shifted (ccurvrad,0); |
| 23 |
path centell; centell = z2..z6..z3--z5..z7..z4--cycle; |
| 24 |
|
| 25 |
% points for placement of center construct |
| 26 |
z8 = (w/2,h/2); |
| 27 |
z9 = (w/2,h/2+centerht); |
| 28 |
z10 = (w/2,h/2-centerht); |
| 29 |
z11 = (w/2,h/2+1.75centerht); |
| 30 |
z12 = (w/2,h/2-1.75centerht); |
| 31 |
|
| 32 |
% draw the main cardinal loops |
| 33 |
z13 = (w/2,h-ss-borderwid-smallspace); |
| 34 |
z14 = 0.75[z11,z13] shifted (-centerwid/2,0); |
| 35 |
z15 = 0.75[z11,z13] shifted (centerwid/2,0); |
| 36 |
z16 = 0.5[z11,z13] shifted (-centerwid/4,0); |
| 37 |
z17 = 0.5[z11,z13] shifted (centerwid/4,0); |
| 38 |
pickup thinpen; |
| 39 |
path lftshortloop; lftshortloop = z11{up}..z16..z14..{up}z13; |
| 40 |
path rtshortloop; rtshortloop = z11{up}..z17..z15..{up}z13; |
| 41 |
draw lftshortloop; draw rtshortloop; |
| 42 |
draw lftshortloop reflectedabout ((0,h/2),(w,h/2)); |
| 43 |
draw rtshortloop reflectedabout ((0,h/2),(w,h/2)); |
| 44 |
z18 = (ss+borderwid+smallspace,h/2); |
| 45 |
z19 = z8 shifted (-centerwid/2,0); |
| 46 |
z24 = 0.75[z19,z18] shifted (0,centerwid/1); |
| 47 |
z25 = 0.75[z19,z18] shifted (0,-centerwid/1); |
| 48 |
z26 = 0.5[z19,z18] shifted (0,centerwid/2); |
| 49 |
z27 = 0.5[z19,z18] shifted (0,-centerwid/2); |
| 50 |
path uplongloop; uplongloop = z19{left}..z26..z24..{left}z18; |
| 51 |
path downlongloop; downlongloop = z19{left}..z27..z25..{left}z18; |
| 52 |
draw uplongloop; draw downlongloop; |
| 53 |
draw uplongloop reflectedabout ((w/2,0),(w/2,h)); |
| 54 |
draw downlongloop reflectedabout ((w/2,0),(w/2,h)); |
| 55 |
% draw the large side loops |
| 56 |
z28 = z16 shifted (-smallspace-thinline-centerwid/2,0); |
| 57 |
z29 = z26 shifted (smallspace+thinline,smallspace+thinline); |
| 58 |
z30 = (x29,y13); |
| 59 |
z31 = z8 shifted (-centerwid-smallspace-thinline, |
| 60 |
centerht+smallspace+thinline); |
| 61 |
z32 = (x18+smallspace+thinline,3h/4); |
| 62 |
z33 = (x18+smallspace+thinline,h/4); |
| 63 |
z34 = (x30,ss+borderwid+smallspace); |
| 64 |
path sideloops; |
| 65 |
sideloops = z29{z8-z29}..z31..z28..{left}z30{left}..z32..z24..z25; |
| 66 |
% continue on with the side loops; |
| 67 |
z80 = (w/4,h/2); |
| 68 |
z81 = (x32+bigspace,h-y32); |
| 69 |
z82 = (x30,h-y30+bigspace); |
| 70 |
z83 = (x31-bigspace,h-y31); |
| 71 |
z84 = 0.25[z19,z18]; |
| 72 |
path downloops; |
| 73 |
downloops := z84{down}..z83..z82..tension 1.5..z81{dir 45}..z80..z29; |
| 74 |
% do the internal ornaments |
| 75 |
z88 = z29 shifted (0,smallspace); |
| 76 |
z85 = (z88--(w/4,h)) intersectionpoint sideloops; |
| 77 |
z86 = (z88--(0,h)) intersectionpoint sideloops; |
| 78 |
z87 = (z88--(3w/4,h)) intersectionpoint sideloops; |
| 79 |
z89 = 0.5[z86,z85] shifted (0,-3bigspace); |
| 80 |
z90 = 0.5[z85,z87] shifted (0,-3bigspace); |
| 81 |
z91 = 0.5[z86,z85]; |
| 82 |
z92 = 0.5[z85,z87]; |
| 83 |
z93 = (x29,y29+2bigspace); |
| 84 |
z94 = (x25,y93); |
| 85 |
z95 = (x84,y93); |
| 86 |
z96 = (x86,(y89+y94)/2); |
| 87 |
z97 = (x89,y93+2bigspace); |
| 88 |
pickup extthinpen; |
| 89 |
path curveone; path curvetwo; path curvethree; |
| 90 |
curveone = z91..z86..z89..{dir 30}z85{dir -45}..z90..z87..z92; |
| 91 |
curvetwo = z89..z93..z94..z96..z97; |
| 92 |
curvethree = z90..z93..z95; |
| 93 |
|
| 94 |
% draw the inner curves |
| 95 |
pickup extthinpen; |
| 96 |
draw curveone; |
| 97 |
draw curveone reflectedabout ((0,h/2),(w,h/2)); |
| 98 |
draw curveone reflectedabout ((w/2,h),(w/2,0)); |
| 99 |
draw curveone reflectedabout ((w/2,h),(w/2,0)) |
| 100 |
reflectedabout ((0,h/2),(w,h/2)); |
| 101 |
draw curvetwo; |
| 102 |
draw curvetwo reflectedabout ((0,h/2),(w,h/2)); |
| 103 |
draw curvetwo reflectedabout ((w/2,h),(w/2,0)); |
| 104 |
draw curvetwo reflectedabout ((w/2,h),(w/2,0)) |
| 105 |
reflectedabout ((0,h/2),(w,h/2)); |
| 106 |
draw curvethree; |
| 107 |
draw curvethree reflectedabout ((0,h/2),(w,h/2)); |
| 108 |
draw curvethree reflectedabout ((w/2,h),(w/2,0)); |
| 109 |
draw curvethree reflectedabout ((w/2,h),(w/2,0)) |
| 110 |
reflectedabout ((0,h/2),(w,h/2)); |
| 111 |
% erase sideloop paths |
| 112 |
pickup thinerasepen; |
| 113 |
erase draw sideloops; |
| 114 |
erase draw sideloops reflectedabout ((0,h/2),(w,h/2)); |
| 115 |
erase draw sideloops reflectedabout ((w/2,h),(w/2,0)); |
| 116 |
erase draw sideloops reflectedabout ((w/2,h),(w/2,0)) |
| 117 |
reflectedabout ((0,h/2),(w,h/2)); |
| 118 |
pickup thinpen; |
| 119 |
draw sideloops; |
| 120 |
draw sideloops reflectedabout ((0,h/2),(w,h/2)); |
| 121 |
draw sideloops reflectedabout ((w/2,h),(w/2,0)); |
| 122 |
draw sideloops reflectedabout ((w/2,h),(w/2,0)) |
| 123 |
reflectedabout ((0,h/2),(w,h/2)); |
| 124 |
% erase the lines that will be the cardinal loops |
| 125 |
pickup thinerasepen; |
| 126 |
erase draw uplongloop; erase draw downlongloop; |
| 127 |
erase draw uplongloop reflectedabout ((w/2,0),(w/2,h)); |
| 128 |
erase draw downlongloop reflectedabout ((w/2,0),(w/2,h)); |
| 129 |
% now draw in the cardinal loops |
| 130 |
pickup thinpen; |
| 131 |
draw uplongloop; draw downlongloop; |
| 132 |
draw uplongloop reflectedabout ((w/2,0),(w/2,h)); |
| 133 |
draw downlongloop reflectedabout ((w/2,0),(w/2,h)); |
| 134 |
draw lftshortloop; draw rtshortloop; |
| 135 |
draw lftshortloop reflectedabout ((0,h/2),(w,h/2)); |
| 136 |
draw rtshortloop reflectedabout ((0,h/2),(w,h/2)); |
| 137 |
% draw the center construct |
| 138 |
fill centell shifted z8; |
| 139 |
fill centell xscaled 0.75 yscaled 0.75 shifted z9; |
| 140 |
fill centell xscaled 0.75 yscaled 0.75 shifted z10; |
| 141 |
fill centell xscaled 0.25 yscaled 0.5 shifted z11; |
| 142 |
fill centell xscaled 0.25 yscaled 0.5 shifted z12; |
| 143 |
% add in the binders |
| 144 |
fill centell scaled 0.75 rotated (90) shifted z84; |
| 145 |
fill centell scaled 0.75 rotated (90) shifted z84 |
| 146 |
reflectedabout ((w/2,h),(w/2,0)); |
| 147 |
pickup extthinpen; |
| 148 |
|
| 149 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); |
| 150 |
penlabels(17,18,19,20,21,22,23,24,25,26,27,28,29,30); |
| 151 |
penlabels(31,32,33,34,35,36,37,38,39,40,41,42,43,44); |
| 152 |
endchar; |