• Remix
  • Share
  • New Entry

  • Jr

  • /
  • balloons II

on 22 Nov 2023
  • 12
  • 5
  • 2
  • 0
  • 669
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(4-f/12,0,'☁︎','color','w','FontSize',40);
hc=text(1-f/12,-2,'☁︎','color','w','FontSize',45);
hc=text(6-f/12,-3,'☁︎','color','w','FontSize',60);
hc=text(5-f/16,-6.7,'🗻','color','k','FontSize',60);
hc=text(-3+f/25,-3.5,"\bf RIGHT \rm",'color','b','FontSize',12+f/15);
hc=text(-2.5+f/25,-4,"\bf THERE!! ↘ \rm",'color','b','FontSize',12+f/15);
%Balloon
plot([a+f/16 -a+f/16],b,'k')
p(c+f/16,d,'k')
p(x+f/16,y,'r')
X=[x;y];
P=[.8 0;0 1]*X;
p(P(1,:)+f/16,P(2,:),'g')
P=[.4 0;0 1]*X;
p(P(1,:)+f/16,P(2,:),'b')
ylim([-6,1])
xlim([-1,6])
axis off
end
Animation
Remix Tree