| 1 |
.PS |
| 2 |
# Floor.m4 |
| 3 |
gen_init |
| 4 |
s = 0.25 |
| 5 |
s60 = s*sqrt(3)/2 |
| 6 |
c60 = s/2 |
| 7 |
ni = 9 |
| 8 |
nj = 6 |
| 9 |
cellw = 3*s |
| 10 |
cellh = 2*s60 |
| 11 |
B:box wid nj*cellw ht ni*cellh shaded rgbstring(0,1,0) |
| 12 |
|
| 13 |
for i=1 to ni do { |
| 14 |
for j=1 to nj do { |
| 15 |
line shaded rgbstring(0,0,1) \ |
| 16 |
from B.sw+((j-1)*cellw,(i-1)*cellh) \ |
| 17 |
right c60 up s60 then right 2*s then up s60 right c60 then left s \ |
| 18 |
then down cellh left 2*c60 then left s |
| 19 |
line shaded rgbstring(1,0,0) \ |
| 20 |
from B.sw+((j-1)*cellw,i*cellh) \ |
| 21 |
right s then down cellh right 2*c60 then right s then up s60 left c60 \ |
| 22 |
then left 2*s then left c60 up s60 |
| 23 |
} |
| 24 |
} |
| 25 |
.PE |