- /
-
Julia
on 1 Nov 2021
- 1
- 28
- 2
- 0
- 196
[x,y]=meshgrid(-1.5:0.001:1.5,-1.2:0.001:1.2);
m=zeros(height(y),width(x));
c=m-0.3-0.63*i;
z=x + y*i;
for j=2:128
z=z.^2+c;
m(logical((m==0).*(abs(z)==Inf)))=j;
end
imagesc(m)
colormap(gca,'flag')
axis equal off