Initialisation du projet bclogo
[bclogo.git] / dev / latex / sources_MetaPost / bc-trombone.mp
1 outputtemplate:="%j.mps";\r
2 prologues := 1;\r
3 beginfig(1);\r
4   picture trombone;\r
5 trombone=image(linecap := butt;\r
6 linejoin := mitered;\r
7 fill (31.867201,44.898399)--(31.867201,17.500000)..controls (31.867201,9.578130) and (25.421900,3.132810)..(17.500000,3.132810)\r
8     ..controls (9.578130,3.132810) and (3.132810,9.578130)..(3.132810,17.500000)\r
9     --(3.132810,65.632797)..controls (3.132810,71.828102) and (8.171880,76.867203)..(14.367200,76.863297)\r
10     ..controls (20.558599,76.867203) and (25.597700,71.828102)..(25.597700,65.632797)\r
11     --(25.597700,17.500000)..controls (25.597700,13.035200) and (21.964800,9.402340)..(17.500000,9.402340)\r
12     ..controls (13.035200,9.402340) and (9.402340,13.035200)..(9.402340,17.500000)\r
13     --(9.402340,44.898399)--(6.269530,44.898399)--(6.269530,17.500000)\r
14     ..controls (6.269530,11.308600) and (11.304700,6.269530)..(17.500000,6.269530)\r
15     ..controls (23.691401,6.269530) and (28.730499,11.308600)..(28.730499,17.500000)\r
16     --(28.730499,65.632797)..controls (28.730499,73.554703) and (22.289101,80.000000)..(14.367200,80.000000)\r
17     ..controls (6.445310,80.000000) and (0.000000,73.554703)..(0.000000,65.632797)\r
18     --(0.000000,17.500000)..controls (0.000000,7.851560) and (7.851560,0.000000)..(17.500000,0.000000)\r
19     ..controls (27.148399,0.000000) and (35.000000,7.851560)..(35.000000,17.500000)\r
20     --(35.000000,44.898399)--cycle withcolor(.5,.5,.5);\r
21     );\r
22 \r
23 \r
24   draw trombone rotated 45;\r
25   r:=17pt/(xpart(urcorner(currentpicture))-xpart(ulcorner(currentpicture)));\r
26   picture pic;\r
27 pic:=currentpicture;\r
28 currentpicture:=nullpicture;\r
29 drawoptions();\r
30 draw pic scaled(r);\r
31 z0=.5*urcorner(currentpicture)+.5*ulcorner(currentpicture);\r
32 z1=.5*lrcorner(currentpicture)+.5*llcorner(currentpicture);\r
33 draw (z0+(10.5,2));\r
34 draw (z1-(10.5,2));\r
35 clip currentpicture to ((z0-(8.5pt,0))--(z0+(8.5pt,0))--(z1+(8.5pt,0))--(z1-(8.5pt,0))--cycle);\r
36 endfig;\r
37 end\r

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.