summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/transparentCubes.asy
blob: ceead2219978919a2a02db88f3d49387a7c827c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import three;

size(100,100);
currentprojection=perspective(10,7,40);

int N=4;
real f=1+1/N;

for(int k=0; k < N; ++k) {
  for(int m=0; m < N; ++m) {
    for(int n=0; n < N; ++n) {
      draw(shift((n,m,k)*f)*unitcube,red+opacity(0.5));
    }
  }
}