• Remix
  • Share
  • New Entry

  • Shanshan

  • /
  • Sticky note--upgraded version 1

on 25 Nov 2023
  • 7
  • 9
  • 1
  • 0
  • 207
drawframe(1);
Write your drawframe function below
function drawframe(f)
ax=axes('position',[0 0 1 1]);
dx=sin(f*0.1);
map=(turbo);
c=map(f*5,:);
x=[-1+dx 1 1-dx -1]*0.9^((f-1)/2);
y=[-1 -1+dx 1 1-dx]*0.9^((f-1)/2);
patch(x,y,c,'edgecolor','none')
hold on
xlim([-1 1])
ylim([-1 1])
axis equal off
end
Animation
Remix Tree