- /
-
Stara
on 23 Oct 2024
- 10
- 62
- 0
- 0
- 291
Cite your audio source here (if applicable):
drawframe(1);
Write your drawframe function below
function drawframe(f)
t = linspace(0, 2*pi, 384);
cla;
figure;
hold on;
for i = 1:f
scale = max(0.1, 1 - (i - 1) * 0.04);
x = scale * 2*sin(2*t)-sin(3*t);
y = scale * 2*cos(2*t)+cos(3*t);
plot(x, y, 'r-', 'LineWidth', 1);
end
axis equal;
axis([-3.5 3.5 -3.5 3.5]);
set(gca, 'Color', [0.9 0.5 0.9]);
title(['Frame: ', num2str(f)]);
hold off;
end
drawframe(15);
Movie
Audio
This submission does not have audio.