• Remix
  • Share
  • New Entry

  • ME

  • /
  • r = sin(0.2*a* theta) Remix

on 24 Nov 2023
  • 18
  • 6
  • 0
  • 0
  • 340
drawframe(5);
Write your drawframe function below
function drawframe(f)
a = linspace(0,15,48);
theta = linspace(0,2*pi,1001);
rho = sin((a(f)/5)*theta);
[x,y] = pol2cart(theta,rho);
scatter(x,y,15,theta.^2,'filled')
hold on
scatter(x,y,35,theta.^2,'filled','MarkerEdgeAlpha',0,'MarkerFaceAlpha',0.2)
colormap(hot)
hold off
axis([-1 1 -1 1 0 5],'off')
view([90 90])
set(gca,'Color','k','XTick',[],'YTick',[])
set(gcf,'Color','k');
end
Animation
Remix Tree