diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-16 17:27:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-16 17:27:26 +0000 |
commit | fbb7e835bffb3653af5165cbcc62aef0df8bfe93 (patch) | |
tree | 556994e281f2760742f38823577c476dbcb84122 /Master/texmf-dist/doc/asymptote/examples/colorpatch.asy | |
parent | df88f83b1126c57b3ca9b0371071f36caba3fbbf (diff) |
asymptote 2.41 for TL17
git-svn-id: svn://tug.org/texlive/trunk@43843 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/colorpatch.asy')
-rw-r--r-- | Master/texmf-dist/doc/asymptote/examples/colorpatch.asy | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/colorpatch.asy b/Master/texmf-dist/doc/asymptote/examples/colorpatch.asy new file mode 100644 index 00000000000..e0f6b5b4272 --- /dev/null +++ b/Master/texmf-dist/doc/asymptote/examples/colorpatch.asy @@ -0,0 +1,18 @@ +import three; +currentlight=Viewport; + +size(10cm); + +surface s=surface(patch(new triple[][] { + {(0,0,0),(1,0,0),(1,0,0),(2,0,0)}, + {(0,1,0),(1,0,1),(1,0,1),(2,1,0)}, + {(0,1,0),(1,0,-1),(1,0,-1),(2,1,0)}, + {(0,2,0),(1,2,0),(1,2,0),(2,2,0)}})); + +s.s[0].colors=new pen[] {red,green,blue,black}; +draw(s,nolight); + +surface t=shift(Z)*unitplane; +t.s[0].colors=new pen[] {red,green,blue,black}; + +draw(t,nolight); |