diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-06 22:15:00 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-06 22:15:00 +0000 |
commit | 8d918f88e6d576dc1612e5625a0ad802d17c8e13 (patch) | |
tree | 7866459f67ba7f4c37d87cf9ea8846b37915fadc /Build/source/utils/asymptote/examples/transparentCubes.asy | |
parent | eb21dd9dc04d18b2ceda665ab6272d4a97926f38 (diff) |
asy 2.60 sources
git-svn-id: svn://tug.org/texlive/trunk@52659 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/examples/transparentCubes.asy')
-rw-r--r-- | Build/source/utils/asymptote/examples/transparentCubes.asy | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/examples/transparentCubes.asy b/Build/source/utils/asymptote/examples/transparentCubes.asy new file mode 100644 index 00000000000..ceead221997 --- /dev/null +++ b/Build/source/utils/asymptote/examples/transparentCubes.asy @@ -0,0 +1,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)); + } + } +} |