- /
-
Balloons in the sky
on 23 Oct 2021
- 41
- 110
- 1
- 0
- 279
R=@rand;
% Picked from Jenny Bosten
% create sky and clouds (need to run multiple times, as it is random)
X=-164:.646:164;
[t,r]=cart2pol(X,X'-90);
s=(285-r)/285;
image(cat(3,s*.3+.1,s*.5+.2,s*.3+.5),'AlphaData',5E4*abs(ifft2(r.^-1.7.*cos(6*R(508)))));
hold
% Make balloons at random positions
t=-pi:.05:pi;
r=25+10*sech(5*(pi/2-t));
x=r.*cos(t)+30;
y=r.*sin(t)+30;
C=400;
for i=1:30
patch(x+C*R(1),y+C*R(1),R(1,3),EdgeA=0);
end
axis off