summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/doc/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"));