summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/tile.asy
blob: fe9cbc523c7ae6840191cf386ecfeadd7becd618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
size(0,90);
import patterns;

add("tile",tile());
add("filledtilewithmargin",tile(6mm,4mm,red,Fill),(1mm,1mm),(1mm,1mm));
add("checker",checker());
add("brick",brick());

real s=2.5;
filldraw(unitcircle,pattern("tile"));
filldraw(shift(s,0)*unitcircle,pattern("filledtilewithmargin"));
filldraw(shift(2s,0)*unitcircle,pattern("checker"));
filldraw(shift(3s,0)*unitcircle,pattern("brick"));