• Remix
  • Share
  • New Entry

on 25 Oct 2021
  • 91
  • 88
  • 0
  • 0
  • 274
n = 500;
[R, I] = meshgrid(linspace(-1.5, 1.5, n));
c=0.4-0.325i;
It = zeros(n, n);
m = colormap([bone; 1 0.1 0.1]);
for ind = 1: n*n
z = R(ind) + 1i*I(ind);
it = 0;
while abs(z)<2 && it<=size(m, 1) && ~isinf(abs(z))
z = z^2.1 + c;
it = it + 1;
end
It(ind) = it;
end
imagesc(uint8(It-1))
axis('off')
Remix Tree