• Remix
  • Share
  • New Entry

  • ME

  • /
  • Two moons

on 23 Nov 2023
  • 11
  • 19
  • 0
  • 0
  • 682
drawframe(1);
Write your drawframe function below
%The content in this work draws inspiration from Mini Hack 2022 at the Jenny Bosten Gallery
function drawframe(f)
a = 716;
v = 255;
l = @linspace;
p = @rescale;
X = l(-10, 10, a);
[t, r] = cart2pol(X, X');
colormap(bone.*[.5 .5 .7]);
% Light glare on top left
[t, g] = cart2pol(X+2.6, X'+1.4);
im1 = image(p(-1*(2*sin(t*10)+60*g.^.2), 0, v));
hold on
% Circle with glow
F = exp(-(r-3)).*abs(ifft2(r.^-1.8.*cos(7*rand(a))));
F(r<3) = 0.001;
im2 = image(v*ones(a), 'AlphaData', p(F, 0, .5));
camva(3.8)
F = exp(-(r-3)).*abs(ifft2(r.^-1.8.*cos(7*rand(a))));
F(r<3) = 0;
set(im2, 'AlphaData', p(F, 0, 1))
% Second planet
X1 = linspace(0,0.5*pi,48);
scatter(150+600*sin(X1(f)),550+300*sin(X1(f)+pi),900,[0.75 0.15 0.23],'filled','MarkerEdgeAlpha',0,'MarkerFaceAlpha',0.2)
scatter(150+600*sin(X1(f)),550+300*sin(X1(f)+pi),400,[0.2 0 0],'filled','MarkerEdgeAlpha',0,'MarkerFaceAlpha',0.75)
hold off
end
Animation
Remix Tree