| 1 |
% +AMDG This document was begun on 4 August 11EX, the feast |
| 2 |
% of St. Dominic, C, and it is humbly dedicated to him and |
| 3 |
% to the Immaculate Heart of Mary for their prayers, and to |
| 4 |
% the Sacred Heart of Jesus for His mercy. |
| 5 |
|
| 6 |
beginchar(oct"000",cap#,cap#,0); "Six-petaled flower"; |
| 7 |
|
| 8 |
fill fullcircle scaled 2dotwid shifted (w/2,h/2); |
| 9 |
z0 = (w/2,h/2) shifted (0,1.5dotwid); |
| 10 |
z1 = (w/2,h); |
| 11 |
z2 = z1 shifted (dotwid,-dotwid); |
| 12 |
z3 = z1 shifted (-dotwid,-dotwid); |
| 13 |
z4 = z0 shifted (dotwid/2,dotwid/2); |
| 14 |
z5 = z0 shifted (-dotwid/2,dotwid/2); |
| 15 |
path petal; petal = z0..z4---z2..z1..z3---z5..cycle; |
| 16 |
fill petal; |
| 17 |
fill petal rotatedaround ((w/2,h/2),60); |
| 18 |
fill petal rotatedaround ((w/2,h/2),120); |
| 19 |
fill petal rotatedaround ((w/2,h/2),180); |
| 20 |
fill petal rotatedaround ((w/2,h/2),240); |
| 21 |
fill petal rotatedaround ((w/2,h/2),300); |
| 22 |
|
| 23 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); |
| 24 |
endchar; |
| 25 |
|
| 26 |
beginchar(oct"001",ex#,ex#,0); "Checkerboard"; |
| 27 |
|
| 28 |
z0 = (0,h); |
| 29 |
z1 = (w/3,h); |
| 30 |
z2 = (w/3,2h/3); |
| 31 |
z3 = (0,2h/3); |
| 32 |
path square; square = z0--z1--z2--z3--cycle; |
| 33 |
fill square; |
| 34 |
fill square shifted (w/3,-h/3); |
| 35 |
fill square shifted (0,-2h/3); |
| 36 |
fill square shifted (2w/3,0); |
| 37 |
fill square shifted (2w/3,-2h/3); |
| 38 |
|
| 39 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); |
| 40 |
endchar; |
| 41 |
|
| 42 |
beginchar(oct"002",ex#,ex#,0); "Inverse Checkerboard"; |
| 43 |
fill square shifted (w/3,0); |
| 44 |
fill square shifted (0,-h/3); |
| 45 |
fill square shifted (2w/3,-h/3); |
| 46 |
fill square shifted (w/3,-2h/3); |
| 47 |
endchar; |
| 48 |
|
| 49 |
beginchar(oct"003",doubex#,doubex#,0); "Triple bar"; |
| 50 |
|
| 51 |
pickup semiextextthickpen; |
| 52 |
top z0 = (0,h); |
| 53 |
top z1 = (w,h); |
| 54 |
bot z2 = (0,0); |
| 55 |
bot z3 = (w,0); |
| 56 |
draw z0--z1; draw z2--z3; |
| 57 |
pickup extextthickpen; |
| 58 |
z4 = (0,h/2); |
| 59 |
z5 = (w,h/2); |
| 60 |
draw z4--z5; |
| 61 |
|
| 62 |
picture triplebarext; triplebarext := currentpicture; |
| 63 |
|
| 64 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); |
| 65 |
endchar; |
| 66 |
|
| 67 |
beginchar(oct"004",doubex#+ex#,doubex#,ex#); |
| 68 |
"Triple bar, upper left corner"; |
| 69 |
|
| 70 |
pickup semiextextthickpen; |
| 71 |
top lft z0 = (0,h); |
| 72 |
top rt z1 = (w,h); |
| 73 |
bot rt z2 = (doubex,0); |
| 74 |
bot rt z3 = (w,0); |
| 75 |
draw z0--z1; draw z2--z3; |
| 76 |
pickup extextthickpen; |
| 77 |
z4 = ((x0+x2)/2,h/2); |
| 78 |
rt z5 = (w,h/2); |
| 79 |
draw z4--z5; |
| 80 |
pickup semiextextthickpen; |
| 81 |
z6 = (x0,-d); |
| 82 |
draw z0--z6; |
| 83 |
pickup extextthickpen; |
| 84 |
z7 = (x4,-d); |
| 85 |
draw z4--z7; |
| 86 |
pickup semiextextthickpen; |
| 87 |
z8 = (x2,-d); |
| 88 |
draw z2--z8; |
| 89 |
|
| 90 |
picture triplecorner; triplecorner := currentpicture; |
| 91 |
|
| 92 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16); |
| 93 |
endchar; |
| 94 |
|
| 95 |
beginchar(oct"005",doubex#+ex#,doubex#,ex#); |
| 96 |
"Triple bar, upper right corner"; |
| 97 |
currentpicture := triplecorner reflectedabout |
| 98 |
((w/2,h),(w/2,-d)); |
| 99 |
endchar; |
| 100 |
|
| 101 |
beginchar(oct"006",doubex#+ex#,doubex#,ex#); |
| 102 |
"Triple bar, lower right corner"; |
| 103 |
currentpicture := triplecorner reflectedabout |
| 104 |
((w/2,h),(w/2,-d)) reflectedabout |
| 105 |
((0,0),(w,0)) shifted (0,ex); |
| 106 |
endchar; |
| 107 |
|
| 108 |
beginchar(oct"007",doubex#+ex#,doubex#,ex#); |
| 109 |
"Triple bar, lower left corner"; |
| 110 |
currentpicture := triplecorner reflectedabout |
| 111 |
((0,0),(w,0)) shifted (0,ex); |
| 112 |
endchar; |
| 113 |
|
| 114 |
beginchar(oct"010",doubex#,doubex#,ex#); "Triple bar, lowered"; |
| 115 |
currentpicture := triplebarext shifted (0,-d); |
| 116 |
endchar; |
| 117 |
|
| 118 |
beginchar(oct"011",doubex#,doubex#,0); "Triple bar, vertical, left"; |
| 119 |
currentpicture := triplebarext rotatedaround ((doubex/2,doubex/2),90); |
| 120 |
endchar; |
| 121 |
|
| 122 |
beginchar(oct"012",2doubex#,doubex#,0); "Triple bar, vertical, right"; |
| 123 |
currentpicture := triplebarext rotatedaround ((doubex/2,doubex/2),90) |
| 124 |
shifted (doubex,0); |
| 125 |
endchar; |
| 126 |
|
| 127 |
beginchar(oct"013",0.75doubex#,0.75doubex#,0); "Clam shell, upright"; |
| 128 |
|
| 129 |
z0 = (0,h/4); |
| 130 |
z1 = (0,3h/4); |
| 131 |
z2 = (w/2,h); |
| 132 |
z3 = 0.5[z1,z2]; |
| 133 |
z4 = (w/4,0); |
| 134 |
z5 = (w/3,h/8); |
| 135 |
z6 = 0.5[z4,z5]; |
| 136 |
z10 = z0 reflectedabout ((w/2,h),(w/2,0)); |
| 137 |
z11 = z1 reflectedabout ((w/2,h),(w/2,0)); |
| 138 |
z13 = z3 reflectedabout ((w/2,h),(w/2,0)); |
| 139 |
z14 = z4 reflectedabout ((w/2,h),(w/2,0)); |
| 140 |
z15 = z5 reflectedabout ((w/2,h),(w/2,0)); |
| 141 |
z16 = z6 reflectedabout ((w/2,h),(w/2,0)); |
| 142 |
z7 = (z3--(w/2,0)) intersectionpoint (z5--z15); |
| 143 |
z17 = z7 reflectedabout ((w/2,h),(w/2,0)); |
| 144 |
|
| 145 |
pickup extthickpen; |
| 146 |
draw z4--z5--z15--z14--cycle; |
| 147 |
draw z16---z11..{dir 210}z13{dir 150}..{left}z2{left}.. |
| 148 |
{dir 210}z3{dir 150}..z1---z6; |
| 149 |
pickup thickpen scaled 2; |
| 150 |
draw z3--z7; |
| 151 |
draw z13--z17; |
| 152 |
|
| 153 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17); |
| 154 |
endchar; |