summaryrefslogtreecommitdiff
path: root/info/asymptote-manual-zh-cn/src/axialshade.asy
blob: 26c04b976bbfa679dbd1ad4e88f77c6c6b835992 (plain)
1
2
3
4
5
unitsize(1cm);
path g = ellipse((0,0), 4, 1);
axialshade(g, green, (-4,0), yellow, (4,0));
axialshade(shift(0,-2.5)*g, stroke=true,
           green+linewidth(2mm), (-4,0), yellow, (4,0));