- /
-
limit cycle
on 31 Oct 2024
- 28
- 119
- 0
- 0
- 220
Cite your audio source here (if applicable):
drawframe(1);
Write your drawframe function below
function drawframe(f)
w = 10-sqrt(f);
[x,y]=meshgrid(linspace(-2,2,40));
F = x.^2+y.^2-1;
l = streamslice(x,y, w*y-x.*F, -w*x-y.*F,0.5,"noarrows");
n = numel(l);
c = hsv(n);
set(l,{'Color'},num2cell(c,2))
axis off
axis([-2,2,-2,2])
set(gcf,'Color', 'black')
end