- /
-
Life of sea sailor
on 12 Nov 2023
- 11
- 31
- 0
- 0
- 346
drawframe(1);
Write your drawframe function below
function drawframe(f)
rng(0)
% Dark sky
q=50:-.5:1;
hold on% hold before imagesc to keep ydir normal
imagesc(q'.*(q./q),[20,80])
% Add star rotation
[x,y]=pol2cart(rand,rand)
x = 0.6214
y = 0.6590
m=99
m = 99;
plot(x+m,y+m,'w')% Add grassy hill
x=[1,1:.1:m,m];
y=[1,cos(0:.1/98:1)*30+randg(1,1,981),1];
fill(x,y,'k')% Add house silhouette
fill([4 4 3 6 9 8 8]*5,[5 7 7 8 7 7 5]*5,'k')
axis off
if f<=4
text(29,35,'◍','color','y')
end
text(37,70,'◍','color','w')
text(40+f,20+f,'🚣','Fontsi',50)
camva(3)
end