- /
-
Apartment
on 15 Oct 2021
- 38
- 66
- 0
- 0
- 274
% Orginal work: Adam Danz , Remix from Adam Danz, MATropolis Streetview.
axes(Color='#70b0F0',Pr='p')
hold
h=rand(9,2)*2+.4; % building heights
b=bar3(h,.5);
set(b,FaceC='m');
axis equal
camva(30)
campos([1.5 10 .2])
for i=1:9 %rows of buildings 1:size(h,1)
for j=1:2 %L/R buildings
c=.1:.2:h(i,j)-.2;
d=[c;c];
z=d(:)'+[0;0;.1;.1];
y=i-[15;5;5;15]*.01+[0,.2];
y=repmat(y,1,numel(c));
patch(.75+j/2*(z*0+1),y,z,[.8,.8,.8])
end
end
camlight