• Remix
  • Share
  • New Entry

on 2 Dec 2023
  • 7
  • 50
  • 0
  • 0
  • 383
drawframe(1);
Write your drawframe function below
function drawframe(f)
if f==1
ax=axes('Position',[0 0 1 1]);
end
if f<24
f=2*f;
else
f=48;
end
map1=flipud(jet);
map2=jet;
theta = -2*pi:pi/100:2*pi;
theta2 = -2*pi:pi/100:2*pi;
rho1 =cos(sin(theta+pi/2));
rho2 = sin(3*theta+f*pi/24).*cos(3.5*theta+f*pi/128)/2;
polarplot(theta*log(f*10),rho1,'LineWidth',2.3,'color',map1(5*f,:))
polarplot(theta,rho2*exp(1/f/2),'LineWidth',2.3,'color',map2(5*f,:))
hold on
axis off
g=gcf;
g.Color='k';
end
Animation
Remix Tree