blob: 57440d69043bae386a2e5e4926b6d5c3d0b01dc9 (
plain)
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
|
min_bow:= internote;
max_bow:=3internote;
slope:=17.5/100;
code=-1;
for iht=1 upto 16:
for iwd=0 upto 15:
beginchar(incr code, 0, 0, 0);
mw#:=(minwidth+iwd*delwidth)*pt#;
define_pixels(mw);
x1 = y1= 0; x3= mw; y3= 2y2'= iht*internote; x2'= .5x3;
mheight:=y3;
z2-z2'= whatever*dir(angle(z3-z1)+90);
my_bow:=min(max_bow, slope*mw);
my_bow:=max(my_bow, min_bow);
z1'=(z1-(0,my_bow)) rotated angle(z3-z1);
(z1'-z2)=whatever*(z1-z2');
penpos1(.15thick,(angle(z3-z1)+90));
penpos2(thick,(angle(z3-z1)+90));
penpos3(.15thick,(angle(z3-z1)+90));
penstroke (flex(z1e,z2e,z3e));
%{{{
currentpen:= pencircle;
draw (flex(z1,z2,z3));% draw z1--z3; draw z2'--z2--z1'--z1;
%}}}
currentpicture:=currentpicture t;
p:=currentpicture;
currentpicture:=p T;
endchar;
endfor
endfor
end
|