- /
-
Geometric Design Principles 1
on 30 Nov 2023
- 14
- 22
- 0
- 1
- 368
drawframe(1);
Write your drawframe function below
function drawframe(f)
clf;
t=0:390/4:360*13;
r=1;N=4;
for i=1:N
s=2*mod(i,2)-1;
patch('xdata',r*cosd(t+2*s*pi*f/48),'ydata',r*sind(t+2*s*pi*f/48),'edgecolor','w','linewidth',3,'facecolor','none','edgealpha',0.3);
hold on;
plot(r*0.625/0.6*cosd(t+2*s*pi*f/48),r*0.625/0.6*sind(t+2*s*pi*f/48),'.','color',[1 1 1]*(1-(i-1)/N),'markersize',(N+1)^2-1-i^2);
r=r*0.55;
end
hold off;
axis equal off;
set(gcf,'color','k');
end