1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
import fontsize;
defaultpen(Helvetica());
picture pic;
unitsize(pic,mm);
pair z=(0,0);
real length=88;
real height=8;
pair step=height*S;
label(pic,"Word Wall Spelling",z,Align);
z += step;
frame f;
label(f,"Name:");
pair z0=(max(f).x,min(f).y);
draw(f,z0--z0+50mm);
add(pic,f,z,Align);
z += step;
for(int i=1; i <= 14; ++i) {
draw(pic,z--z+length);
z += step;
draw(pic,z--z+length,dashed);
z += step;
void label(int i) {
label(pic,string(i)+".",z,0.2NE,fontsize(0.8*1.5*2*height*mm)+gray);
}
if(i <= 10) label(i);
else if(i == 11) {
pair z0=z+length/2;
pen p=fontsize(20pt);
label(pic,"Challenge Word",z0+N*height,I*Align.y,p+basealign);
label(pic,"(optional)",z0,I*Align.y,p);
}
else if(i == 12) label(1);
else if(i == 13) label(2);
}
draw(pic,z--z+length);
add(pic.fit(),(0,0),W);
add(pic.fit(),(0,0),E);
|