- /
-
Dreaming Nebula
on 14 Oct 2022
- 92
- 361
- 0
- 2
- 280
% Credits for the code go to Jenny Bosten
a=2E3;
c=256;
X=linspace(-1,1,a);
[t,r]=cart2pol(X,X');
g=[0 .2 .5
1 .9 .9
0 0 0];
d=@rand;
i=@image;
i(ones(a))
hold
m=[];
f=[0
127
c];
for k=1:3
m=[m;bone.*g(k,:)];
colormap(m)
i(rescale(2-r,k*c-255,k*c),'AlphaData',20*abs(ifft2(r.^-1.6.*cos(7*d(a)))));
end
scatter(a*d(a,1),a*d(a,1),d(a,1)*2,'y','f');
camva(3)