• Remix
  • Share
  • New Entry

on 30 Nov 2023
  • 11
  • 9
  • 0
  • 0
  • 251
drawframe(1);
Write your drawframe function below
function drawframe(f)
x = [0 1 1 0];
y = [0 0 1 1];
S = 1.5;
patch([-0.5 -0.5 9.5 9.5],[-7 1 1 -7]/S,[1 1 1]);
for j=0:7
for i=0:2:8
patch(x+i-cos(2*pi*j/6.25+2*pi*f/48)/2,(y-j)/S,[0 0 0]);
end
hold on;
end
for j=-1:7
plot([-0.5 9.5],-j/S+[0 0],'color',0.5*[1 0 0]);
end
axis equal off;
hold off;
end
Animation
Remix Tree