- /
-
Beating
on 6 Nov 2023
- 18
- 184
- 0
- 6
- 181
drawframe(24);
Write your drawframe function below
function drawframe(f)
g = @(t) 24-abs(mod(t,48)-24);
t = linspace(0,2*pi,257);
x = 16*sin(t).^3;
y = 2+13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t);
fill(g(f)*x,g(f)*y,'r')
axis equal; axis(400*[-1,1,-1,1]); axis off
end