Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/extras/Birds.m4

raw
1 .PS
2 # Birds.m4
3 gen_init
4
5 scale = 50
6 linethick = 2*linethick
7
8 define bird {[
9 line shaded "$1" from (0,0) to \
10 (10,-5) to (19,8) to (35,7) to (38,-12)+(0,2) to (60,0) to\
11 (75,23) to (80,40) to (52,37)+(2,2) to (74,50) to (52,50) to \
12 (60,60) to (38,48)+(0,2) to (35,67) to (19,68) to (10,55) to \
13 (0,60) to (-8,50) to (14,50) to (-8,37)+(2,2) to (20,40) to \
14 (15,23) to (0,0)
15 E: (80,40)
16 W: (20,40)
17 N: (19,68)
18 S: (19,8)
19 line outlined "gray" from (35,15) down 10 right 25
20 line outlined "gray" from (40,20) right 25 down 8
21 line outlined "gray" from (42,25) right 28 down 6
22 line outlined "gray" from (40,30) right 32 down 4
23 circle outlined "gray" rad 1 at (1,55)
24 circle outlined "gray" rad 4 at (24,55)
25 ]}
26
27 ncols = 4
28 nrows = 4
29 right
30 for i=0 to nrows-1 do {
31 for j=0 to ncols-1 do { move to (j*60,-i*60)
32 if (i+j)%2==0 then { bird(black) } else { bird(white) }
33 }
34 }
35
36 .PE