• Remix
  • Share
  • New Entry

  • Jr

  • /
  • balloons I

on 22 Nov 2023
  • 15
  • 19
  • 3
  • 0
  • 614
drawframe(1);
Current plot held
Write your drawframe function below
%For this short story I was inspired by this 2021 mini hack plot: https://www.mathworks.com/matlabcentral/communitycontests/contests/4/entries/6708
function drawframe(f)
l=@linspace;
p=@patch;
t=l(pi,-pi);
r=1+.3*sech(5*(pi/2+t));
x=r.*cos(t);
y=r.*sin(t);
a=[.1;.1];
b=-[1.3;1.7];
c=.1*[-2 -1 1 2];
d=-[1.7 2 2 1.7];
figure('color', [.6 1 1])
%Emojis and movement
hc=text(-2+f/8,0+f/6,'☁︎','color','w','FontSize',3+f*2);
hc=text(0+f/4,.5,'☁︎','color','w','FontSize',3+f*2);
hc=text(-1.5+f/9,.5-f/6,'☁︎','color','w','FontSize',3+f*4);
hold
%Balloon
plot([a+f/3 -a+f/3],b,'color', [.6 1 1])
plot([a -a],b,'k')
p(c,d,'k')
p(x,y,'r')
X=[x;y];
P=[.8 0;0 1]*X;
p(P(1,:),P(2,:),'g')
P=[.4 0;0 1]*X;
p(P(1,:),P(2,:),'b')
%text
hc=text(8-f/8,-2,"\bf LET'S \rm",'color','b','FontSize',15+f/16);
hc=text(9-f/8,-4,"\bf GO! \rm",'color','b','FontSize',15+f/15);
axis equal off
end
Animation
Remix Tree
Load full remix tree