- /
-
Lightning Ball
on 1 Nov 2024
- 26
- 130
- 0
- 3
- 242
Thunder by Imagine Dragons
drawframe(1);
Write your drawframe function below
% Javier Gregory (Grade 12)
% Puri Anjasmoro
% Victory Academy, Jangli Gabeng
function drawframe(f)
a = linspace(7.5,10,96);
theta = linspace(0,20*pi,1000);
rho = (0.16*(asin(cos(a(f)*theta))).^3 + 0.05*theta);
p = polarplot(theta,rho,'LineWidth',2,'Color',[.9 .7 .2]);
rlim([0 1.05]);
set(gca,'Color','k','RTick',[],'ThetaTick',[])
set(gcf,'Color','k');
end