• Remix
  • Share
  • New Entry

on 28 Oct 2021
  • 6
  • 99
  • 1
  • 0
  • 274
z=([0 1 1 0;0 0 1 1]-.5)*.1;
R=@(x)[cos(x) -sin(x);sin(x) cos(x)];
c=hsv(201);
plot3([0 0],[0 0],[-1 3],'-k')
for i=1:1e3
t=rand*2*pi;
x=rand;
y=R(t)*(z+rand*[0;1]);
patch(y(1,:),y(2,:),y(1,:)*0+x*2,c(round(t/pi*100)+1,:)*x,'edgec','n');
end
axis equal off;
grid on;
lighting gouraud;
view([0 45]);
Remix Tree