summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/SierpinskiSponge.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-01 23:10:25 +0000
committerKarl Berry <karl@freefriends.org>2020-03-01 23:10:25 +0000
commit81abf43d2b32106102462c3fd1b6c52c0b74f6b7 (patch)
tree8ff3cf992c81a46d17219ac528c3cb6fe7467402 /Master/texmf-dist/doc/asymptote/examples/SierpinskiSponge.asy
parent668f13d96ea148cade89c8813883c8b5a90cb55e (diff)
asymptote 2.62 support files
git-svn-id: svn://tug.org/texlive/trunk@53988 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/SierpinskiSponge.asy')
-rw-r--r--Master/texmf-dist/doc/asymptote/examples/SierpinskiSponge.asy11
1 files changed, 4 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/SierpinskiSponge.asy b/Master/texmf-dist/doc/asymptote/examples/SierpinskiSponge.asy
index c398aa511c6..deaf7c1dec3 100644
--- a/Master/texmf-dist/doc/asymptote/examples/SierpinskiSponge.asy
+++ b/Master/texmf-dist/doc/asymptote/examples/SierpinskiSponge.asy
@@ -82,18 +82,15 @@ for(int n3=0; n3 < 20; ++n3) {
for(int n2=0; n2 < 20; ++n2) {
surface s1;
for(int n1=0; n1 < 20; ++n1) {
- for(int k=0; k < 6; ++k){
- transform3 T=scale3(u)*shift(M[n1])*scale3(0.5);
+ for(int k=0; k < 6; ++k) {
if(Sponge3[n3][n2][n1][k] > 0) {
- s1.append(T*Squares[k]);
+ s1.append(scale3(u)*shift(M[n1])*scale3(0.5)*Squares[k]);
}
}
}
- transform3 T=scale3(u)*shift(M[n2])*scale3(0.5);
- s2.append(T*s1);
+ s2.append(scale3(u)*shift(M[n2])*scale3(0.5)*s1);
}
- transform3 T=scale3(u)*shift(M[n3])*scale3(0.5);
- s3.append(T*s2);
+ s3.append(scale3(u)*shift(M[n3])*scale3(0.5)*s2);
}
s3.colors(palette(s3.map(abs),Rainbow()));
draw(s3);