- /
-
strings of hope
on 13 Oct 2024
- 71
- 236
- 2
- 0
- 334
Cite your audio source here (if applicable):
drawframe(1);
Write your drawframe function below
function drawframe(f)
clf;
axis([-20 20 -20 20 -20 20]);
axis off;
set(gca, 'Color', 'k');
set(gca, 'Visible', 'off');
view(3);
t = linspace(0, 4*pi, 200);
x = (cos(t) + cos(5*t/2)) * 10;
y = (sin(t) + sin(5*t/2)) * 10;
z = sin(2*t) * 10;
colorValues = linspace(0, 1, 200);
scatter3(x, y, z, 120, colorValues, 'filled');
rotateAngle = f * (360 / 96);
camorbit(rotateAngle, 1);
drawnow;
end