- /
-
Rising Sun
on 17 Oct 2024
- 55
- 345
- 0
- 3
- 412
Cite your audio source here (if applicable): Downloaded From Bird Music | No Copyright Song & MP3 Free Downloads - Pixabay
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','#EDB120','Fontsi',260);
text(380,250+f,'🌣','color','#EDB120','Fontsi',220);
text(500,245+f,'🌣','color','#EDB120','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*[0.8500 0.3250 0.0980],'EdgeColor','n');
end
axis equal off;
ylim([0,n])
end