+%
+% draw an axis aligned block making sure that edges are on pixels.
+%
+
def draw_rounded_block (expr bottom_left, top_right, roundness) =
save round;
round = floor min(roundness,xpart (top_right-bottom_left),
enddef;
+%
+% Bulb with smooth inside curve.
%
% alpha = start direction.
% beta = which side to turn to.
penpos2(flare,180+beta+alpha);
z2=z3;
penpos3(flare,0+alpha);
- z3l=z1r+(1/2+0.43)*flare*dir(alpha+beta);
+ z3l=z1r+(1/2+0.43)*flare*dir(alpha+beta) ;
save taille;
taille = 0.0;
z4=z2r- line * dir(alpha);