- /
-
2/3 - Shai Hulud
on 10 Oct 2024
- 23
- 223
- 2
- 2
- 382
Cite your audio source here (if applicable): https://www.youtube.com/watch?v=mq1d9XKm6gc
Write your drawframe function below
%Hi everyone, last year I made some fun animation sequences and I thought I would repeat this idea :)
%2/3 - Shai Hulud
function drawframe(f)
c=1200;
n=800;
hold on;
%Shai-Hulud is a sacred term that is usually spoken with a tone of awe, fear, or respect:
text(370,280+f,'●','color','k','Fontsi',260);
text(380,250+f,'🌣','color','w','Fontsi',220);
text(500,245+f,'🌣','color','w','Fontsi',120);
%Dunes:
for i=6:-1:1
y=i/(20)*n;
u=c*(1-(i-1)/20);
x=linspace(0,c,n);
p=y/n*12;
t=x*6/u;
q=0.8*sin(f*p/18+t)+0.8*sin(f*p/13+.3*t);
r=y+q*160*.8^(i-1);+3^(i-1);
v=[
x' r';
c 0;
0 0];
fill(v(:,1),v(:,2),i/6*[.8 .8 .8],'EdgeColor','n');
end
axis equal off;
ylim([0,n])
end