diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-20 17:51:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-20 17:51:10 +0000 |
commit | aeecf951b2d292ab5afce830bc1b85bf7ea22e0b (patch) | |
tree | 950d0bcf124ac371f95d0225337fcf71e3dba991 /Build/source/utils/asymptote/doc/colors.asy | |
parent | 11b7caf0b63d1af64dbff00b40f521432d26adc8 (diff) |
asy 2.35 sources
git-svn-id: svn://tug.org/texlive/trunk@37458 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/doc/colors.asy')
-rw-r--r-- | Build/source/utils/asymptote/doc/colors.asy | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Build/source/utils/asymptote/doc/colors.asy b/Build/source/utils/asymptote/doc/colors.asy index ea576379deb..2f2bf988d0c 100644 --- a/Build/source/utils/asymptote/doc/colors.asy +++ b/Build/source/utils/asymptote/doc/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"); |