- /
-
same_seashell_with_sinpi_cospi_and_implicit_expansion
on 19 Oct 2022
- 14
- 97
- 4
- 0
- 253
u = linspace(0, 2, 512);
v = u.';
s = (1-v/2)/5 ;
t = .1 - s.*(1+cospi(u)) ;
x = t .* cospi(2*v) ;
y = t .* sinpi(2*v) ;
z = v/4 - s.*sinpi(u) ;
surf (x ,y, z, y)
shading interp
axis off equal
colormap (hsv (1024))
lightangle (80, -40)
lightangle (-90, 60)
view ([-150 10])