- /
-
Colorful octopus
on 14 Oct 2021
- 12
- 13
- 0
- 0
- 277
p=pi;
[z,t]=meshgrid(linspace(0,6*p,100),linspace(0,2*p,1000));
s=sin(t);
c=cos(t);
r=abs(sin(acos((z/p-1)/5*2-1)).*2.5*p.*(z>=p)+15*sin(z).*(z<pi).*cos(t*4));
surf(r.*c,r.*s,z,t,'edgecolor','w','edgealpha',0.0);
colormap hsv;
axis equal off;
material shiny;
camlight;
lighting gouraud;
view([0 30]);