- /
-
Floating Lantern
on 28 Oct 2021
- 12
- 186
- 3
- 0
- 280
axes(Color='k',DataA=[1,1,1])
hold
a=315;
b=(0:.01:pi)';
[x,y,z]=sphere(a-1);
v=(abs(sin(20*b))+3)/4;
v(1:60)=nan;
A=ones(a).*v.*cat(3,1,0,0).*sin(b);
B=ones(a,a,3).*cat(3,1,1,0);
surf(x.*v,y.*v,z,A);
surf(x/2,y/2,z/2,B);
shading flat
r=@rand;
plot3(r(9)*5-3,r(9)*6+4,r(9)*6+1,'w.');
view([0,-35])
camva(2)