• Remix
  • Share
  • New Entry

on 30 Nov 2023
  • 16
  • 32
  • 0
  • 0
  • 240
drawframe(1);
Write your drawframe function below
function drawframe(f)
r = linspace(0,1,300);
t = linspace(0,2*pi,300);
[r,t] = meshgrid(r,t);
x = r.*cos(t);
y = r.*sin(t);
z = x+1i*y;
s = z;
for i=1:50
s = s.*(1-z.^i).^24;
end
surf(x,y,0*x,angle(s),'edgecolor','none');
view([0 90]);
axis equal off;
colormap(circshift(hsv(48),f-1,1));
end
Animation
Remix Tree