Initialisation du projet bclogo
[bclogo.git] / dev / latex / sources_MetaPost / bc-calendrier.mp
1 prologues:=3;\r
2 vardef showtext(expr origin)(expr angle)(expr string) =\r
3   draw string infont defaultfont scaled defaultscale\r
4     rotated angle shifted origin;\r
5 enddef;\r
6 outputtemplate:="%j.mps";\r
7 beginfig(1);\r
8 linecap := butt;\r
9 linejoin := mitered;\r
10 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
11 linejoin := rounded;\r
12 fill (72.046898,703.862976)--(72.046898,720.054993)--(84.191399,720.054993)\r
13     --cycle;\r
14 drawoptions (withcolor (0.000000,0.000000,0.000000));\r
15 pickup pencircle scaled 0.199253bp;\r
16 linecap := rounded;\r
17 draw (72.046898,703.862976)--(72.046898,720.054993)--(84.191399,720.054993);\r
18 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
19 pickup pencircle scaled 0.000000bp;\r
20 linecap := butt;\r
21 fill (72.335899,703.578003)--(72.335899,719.770020)--(84.476601,719.770020)\r
22     --cycle;\r
23 drawoptions (withcolor (0.502000,0.502000,0.502000));\r
24 pickup pencircle scaled 0.099626bp;\r
25 linecap := rounded;\r
26 draw (72.335899,703.578003)--(72.335899,719.770020)--(84.476601,719.770020);\r
27 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
28 pickup pencircle scaled 0.000000bp;\r
29 linecap := butt;\r
30 fill (72.621101,703.293030)--(72.621101,719.484009)--(84.765602,719.484009)\r
31     --cycle;\r
32 drawoptions (withcolor (0.502000,0.502000,0.502000));\r
33 pickup pencircle scaled 0.099626bp;\r
34 linecap := rounded;\r
35 draw (72.621101,703.293030)--(72.621101,719.484009)--(84.765602,719.484009);\r
36 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
37 pickup pencircle scaled 0.000000bp;\r
38 linecap := butt;\r
39 fill (72.906303,703.004028)--(72.906303,719.195007)--(85.050797,719.195007)\r
40     --cycle;\r
41 drawoptions (withcolor (0.502000,0.502000,0.502000));\r
42 pickup pencircle scaled 0.099626bp;\r
43 linecap := rounded;\r
44 draw (72.906303,703.004028)--(72.906303,719.195007)--(85.050797,719.195007);\r
45 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
46 pickup pencircle scaled 0.000000bp;\r
47 linecap := butt;\r
48 fill (73.191399,702.718994)--(73.191399,718.909973)--(85.335899,718.909973)\r
49     --cycle;\r
50 drawoptions (withcolor (0.502000,0.502000,0.502000));\r
51 pickup pencircle scaled 0.099626bp;\r
52 linecap := rounded;\r
53 draw (73.191399,702.718994)--(73.191399,718.909973)--(85.335899,718.909973);\r
54 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
55 pickup pencircle scaled 0.000000bp;\r
56 linecap := butt;\r
57 fill (73.480499,710.526978)--(73.480499,702.434021)--(85.625000,702.434021)\r
58     --(85.625000,718.625000)--(73.480499,718.625000)--cycle;\r
59 drawoptions (withcolor (0.000000,0.000000,0.000000));\r
60 pickup pencircle scaled 0.199253bp;\r
61 linecap := rounded;\r
62 draw (73.480499,710.526978)--(73.480499,702.434021)--(85.625000,702.434021)\r
63     --(85.625000,718.625000)--(73.480499,718.625000)--cycle;\r
64 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
65 pickup pencircle scaled 0.000000bp;\r
66 linecap := butt;\r
67 fill (73.480499,718.625000)..controls (74.320297,716.151978) and (75.070297,705.668030)..(76.906303,704.676025)\r
68     --(76.906303,704.676025)--(89.050797,704.676025)--(89.050797,704.676025)\r
69     ..controls (87.214798,705.668030) and (86.460899,716.151978)..(85.625000,718.625000)\r
70     --cycle;\r
71 drawoptions (withcolor (0.000000,0.000000,0.000000));\r
72 pickup pencircle scaled 0.199253bp;\r
73 linecap := rounded;\r
74 draw (73.480499,718.625000)..controls (74.320297,716.151978) and (75.070297,705.668030)..(76.906303,704.676025)\r
75     --(76.906303,704.676025)--(89.050797,704.676025)--(89.050797,704.676025)\r
76     ..controls (87.214798,705.668030) and (86.460899,716.151978)..(85.625000,718.625000);\r
77 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
78 pickup pencircle scaled 0.000000bp;\r
79 linecap := butt;\r
80 fill (72.046898,703.862976)--(73.480499,702.434021)--cycle;\r
81 drawoptions (withcolor (0.000000,0.000000,0.000000));\r
82 pickup pencircle scaled 0.199253bp;\r
83 linecap := rounded;\r
84 draw (72.046898,703.862976)--(73.480499,702.434021);\r
85 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
86 pickup pencircle scaled 0.000000bp;\r
87 linecap := butt;\r
88 fill (72.046898,720.054993)--(73.480499,718.625000)--cycle;\r
89 drawoptions (withcolor (0.000000,0.000000,0.000000));\r
90 pickup pencircle scaled 0.199253bp;\r
91 linecap := rounded;\r
92 draw (72.046898,720.054993)--(73.480499,718.625000);\r
93 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
94 pickup pencircle scaled 0.000000bp;\r
95 linecap := butt;\r
96 fill (84.191399,720.054993)--(85.625000,718.625000)--cycle;\r
97 drawoptions (withcolor (0.000000,0.000000,0.000000));\r
98 pickup pencircle scaled 0.199253bp;\r
99 linecap := rounded;\r
100 draw (84.191399,720.054993)--(85.625000,718.625000);\r
101 drawoptions (withcolor (1.000000,1.000000,1.000000));\r
102 pickup pencircle scaled 0.000000bp;\r
103 linecap := butt;\r
104 fill (76.906303,704.676025)--(89.050797,704.676025)--cycle;\r
105 drawoptions (withcolor (0.000000,0.000000,0.000000));\r
106 pickup pencircle scaled 0.199253bp;\r
107 linecap := rounded;\r
108 draw (76.906303,704.676025)--(89.050797,704.676025);\r
109 defaultfont := "cmtt10";\r
110 defaultscale := 9.962640/fontsize defaultfont;\r
111 showtext ((77.720802,711.338013), 0.000000, "1");\r
112 defaultfont := "cmtt8";\r
113 defaultscale := 5.977580/fontsize defaultfont;\r
114 showtext ((76.962997,705.482971), 0.000000, "JAN");\r
115 r:=17pt/(xpart(urcorner(currentpicture))-xpart(ulcorner(currentpicture)));\r
116 picture pic;\r
117 pic:=currentpicture;\r
118 currentpicture:=nullpicture;\r
119 drawoptions();\r
120 draw pic scaled(r);\r
121 z0=.5*urcorner(currentpicture)+.5*ulcorner(currentpicture);\r
122 z1=.5*lrcorner(currentpicture)+.5*llcorner(currentpicture);\r
123 draw (z0+(10.5,2));\r
124 draw (z1-(10.5,2));\r
125 clip currentpicture to ((z0-(8.5pt,0))--(z0+(8.5pt,0))--(z1+(8.5pt,-1pt))--(z1-(8.5pt,1pt))--cycle);\r
126 endfig;\r
127 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.