- /
-
Fractal art
on 13 Oct 2021
- 2
- 42
- 1
- 0
- 193
c=0.285-0.01i;
n=100;
s=10;
XX=-1.1:0.002:1.1;
YY=-1.4:0.002:1.4;
M=[];
for x=XX
V=[];
for y=YY
z=x+1i*y;
for i=0:n
z=z^2+c;
if abs(z)>s, break;end
end
V=[V;i];
end
M=[M V];
end
imagesc(M)
map=[jet;hsv];
colormap(map)
axis off