! Document name: gardoor_3 !name: gardoor_3 April 1991. let e=3" let f=2" let g=int(c) let h=int(d) if g<1 then 100 if g>10 then 100 if h<1 then 90 if h>10 then 90 rect a,b addz -1/8" material S_ addy b rotx 180 addx 2" for i=0 to g-1 addy (i*b/g)+1" rect a-4",(b/g)-2" del 1 next i addz 1/4" addx -2" for i=0 to g-1 addy i*b/g for j=0 to h-1 addy f addx e addx j*((a-(h-1)*f-2*e)/h+f) casdoorframe (a-(h-1)*f-2*e)/h,b/g-2*f del 3 next j del 1 next i goto 110 90: for i=1 to g-2 addy i*b/g rect a,b/g del 1 next i 100: rect a,b 110: del top end