- /
-
The Mathworks Nebula
on 17 Oct 2021
- 62
- 221
- 0
- 0
- 280
a=508;
X=linspace(-1,1,a);
g=[1 .9 .1 %yellow
.5 .1 .1 %red
.8 .4 .1 %orange
.4 .7 .7%teal
0 0 0]; %black
b=bone;
m=[];
image(a*ones(a))
hold
for k=1:5
m=[m;b.*g(k,:)];
colormap(m)
f=rand/2-.2;
[t,r]=cart2pol(X+f,X'-f);
image(rescale(exp(-r),k*256-255,k*256),'AlphaData',rescale(abs(ifft2(r.^-1.6.*cos(7*rand(a)))),-1,11-2*k));
end
camva(4)