• Remix
  • Share
  • New Entry

on 25 Nov 2023
  • 8
  • 12
  • 3
  • 0
  • 210
drawframe(1);
Write your drawframe function below
function drawframe(f)
ax=axes('position',[0 0 1 1]);
dx=f*0.1;
if mod(f,2)==1
c='k';
else
c='y';
end
x=[-1+dx 1 1-dx -1]*0.8^((f-1)/2);
y=[-1 -1+dx 1 1-dx]*0.8^((f-1)/2);
patch(x,y,c,'edgecolor','none')
hold on
xlim([-1 1])
ylim([-1 1])
axis equal off
end
Animation
Remix Tree
Load full remix tree