- /
-
I'm Little Teapots
on 14 Oct 2021
- 11
- 11
- 0
- 0
- 280
%l = light('Position,[-0.4 0.2 0.9],'Style','infinite');
R=14;
for i=1:5
d(randi(R),randi(R)*1.2,i);%org pq00
d(randi(R)*1.1,randi(R),i);
end
colormap bone
%axis([-2 35 -2 35 0 0])
axis equal off
%material dull
view(165,6)
function t=d(p,q,s)
[v,f,c]=teapotGeometry;
v(:,1)=v(:,1)+p; v(:,2)=v(:,2)+q;
patch('Faces',f,'Vertices',v,'FaceVertexCData',c,'FaceColor','interp');
%FaceColor='interp'
if s~=2
shading interp
end
hold
end