animal_procedure.ps
1000 Bytes
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
%animal_procedure%
/ccircle {
0 360 arc
stroke
} def
/ctriangle {
moveto
rlineto
rlineto
fill
} def
/cligne {
moveto
rlineto
stroke
} def
%yeux
/ceye {
gsave
0 0 0 setrgbcolor
1 setlinewidth
2 copy
20 ccircle
2 0 360 arc
fill
grestore
} def
/cmoustache {
1 eq {
170
/x exch def
100 10 x 370 cligne
100 0 x 390 cligne
100 -10 x 410 cligne
}
{
330
/x exch def
100 10 x 400 cligne
100 0 x 390 cligne
100 -10 x 380 cligne
}ifelse
} def
%yeux
330 450 ceye
270 450 ceye
%moustaches
1 cmoustache
2 cmoustache
%oreilles
gsave
0.5 0 0 setrgbcolor
15 -25 30 50 227 470 ctriangle
30 -50 15 25 328 495 ctriangle
grestore
%nez
gsave
1 0.75 0.796 setrgbcolor
15 -15 15 15 285 390 ctriangle
grestore
%tete
gsave
4 setlinewidth
0.5 0 0 setrgbcolor
300 400 100 ccircle
stroke
grestore
%bouche
newpath
300 380 60 -160 -20 arc
closepath
stroke