summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/asymptote/examples/vertexshading.asy
blob: 13821ec00585dce623bb5f1ae5300f48f344d827 (plain)
1
2
3
4
5
6
7
8
9
import three;

size(200);

currentprojection=perspective(4,5,5);

draw(surface(unitcircle3,new pen[] {red,green,blue,black}));
draw(surface(shift(Z)*unitsquare3,
	     new pen[] {red,green+opacity(0.5),blue,black}));