summaryrefslogtreecommitdiff
path: root/graphics/asymptote/examples/RiemannSurface.asy
blob: 2a4ba5e4db4e4b20c2fc163f661c1ef5e70d3b31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import graph3;
import palette;

size(200,300,keepAspect=false);
//settings.nothin=true;

currentprojection=orthographic(dir(70,60));
currentlight=(10,10,5);
triple f(pair t) {return (exp(t.x)*cos(t.y),exp(t.x)*sin(t.y),t.y);}

surface s=surface(f,(-4,-2pi),(0,4pi),8,16,Spline);
s.colors(palette(s.map(zpart),Rainbow()));
draw(s,render(merge=true));