diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-20 17:59:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-20 17:59:31 +0000 |
commit | 072cb7160a0ae45a78b0d521af8a1533bb78603f (patch) | |
tree | a1e3dfba0cd2083c9ae8a70ed1d7da1f52e09741 /Master/texmf-dist/doc/asymptote/examples | |
parent | aeecf951b2d292ab5afce830bc1b85bf7ea22e0b (diff) |
asymptote 2.35
git-svn-id: svn://tug.org/texlive/trunk@37459 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples')
-rw-r--r-- | Master/texmf-dist/doc/asymptote/examples/colors.asy | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/colors.asy b/Master/texmf-dist/doc/asymptote/examples/colors.asy index ea576379deb..2f2bf988d0c 100644 --- a/Master/texmf-dist/doc/asymptote/examples/colors.asy +++ b/Master/texmf-dist/doc/asymptote/examples/colors.asy @@ -5,7 +5,7 @@ bool components=false; pen p; -void col(bool fill=false ... string[] s) { +void col(... string[] s) { for(int n=0; n < s.length; ++n) { j -= 10; string s=s[n]; @@ -15,9 +15,8 @@ void col(bool fill=false ... string[] s) { for(int i=0; i < a.length; ++i) s += " "+(string) a[i]; } - if(fill) label(s,(i+10,j),E,p,Fill(gray)); - else label(s,(i+10,j),E,p); - fill(box((i,j-5),(i+10,j+5)),p); + label(s,(i+10,j),E); + filldraw(box((i,j-5),(i+10,j+5)),p); } } @@ -91,7 +90,7 @@ i += 150; j=0; col("black"); -col("white",fill=true); +col("white"); j -= 10; col("orange"); |