• Remix
  • Share
  • New Entry

  • Jr

  • /
  • balloons III

on 22 Nov 2023
  • 14
  • 4
  • 1
  • 0
  • 714
drawframe(1);
Current plot held
Write your drawframe function below
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])
hold
%Emojis, text and movement
hc=text(-1,0+f/15,'☁︎','color','w','FontSize',40);
hc=text(-3,-2+f/15,'☁︎','color','w','FontSize',45);
hc=text(-5,-5+f/15,'☁︎','color','w','FontSize',65);
hc=text(2,-3+f/15,'☁︎','color','w','FontSize',60);
hc=text(-1.2,-6.7,'🗻','color','k','FontSize',60);
hc=text(-4,-2.5-f/25,"\bf just in \rm",'color','b','FontSize',12+f/15);
hc=text(-3.5,-3-f/25,"\bf time... \rm",'color','b','FontSize',12+f/15);
%Balloon
plot([a -a],b-f/16,'k')
p(c,d-f/16,'k')
p(x,y-f/16,'r')
X=[x;y];
P=[.8 0;0 1]*X;
p(P(1,:),P(2,:)-f/16,'g')
P=[.4 0;0 1]*X;
p(P(1,:),P(2,:)-f/16,'b')
ylim([-6,1])
xlim([-3,4])
axis off
end
Animation
Remix Tree