• Remix
  • Share
  • New Entry

on 12 Oct 2021
  • 5
  • 14
  • 0
  • 0
  • 277
n = 500;
[R, I] = meshgrid(linspace(-2, 2, n));
c= -0.795 + 0.18i;
Iter = zeros(n, n);
m = colormap('jet');
for ind = 1: n*n
z = R(ind) + 1i*I(ind);
iter = 0;
while abs(z)<2 && iter<=size(m, 1) && ~isinf(abs(z))
z = z^2 + c;
iter = iter + 1;
end
Iter(ind) = iter;
end
imagesc(uint8(Iter-1));
axis('off');
Image
Remix Tree