• Remix
  • Share
  • New Entry

on 22 Oct 2021
  • 17
  • 119
  • 1
  • 0
  • 272
% Remix of Vinay Ramesh's "And there's no party w/o balloons!!"
[X,Y,Z]=sphere(200);
[A,B]=meshgrid(0:2:10);
C=meshgrid(1:6);
hold on
for i=1:36
c=rand(1,3);
a=A(i)-A(i)*.13;
b=B(i)+mod(C(i),2);
surf(X+a,Y+b,Z+6,FaceC=c,FaceA=.8,EdgeA=0)
% add knot
[U,V,W]=cylinder([.15,.1],99);
surf(U+a,V+b,W/4+4.8,EdgeA=0,FaceC=c);
end
axis equal
campos([-10,6,1])
camva(15)
camlight
Image
Remix Tree