• Remix
  • Share
  • New Entry

on 19 Oct 2021
  • 104
  • 60
  • 0
  • 0
  • 253
h = 1000; xo = -0.6; r = 1.2; k = 45;
x = linspace(xo-r, xo+r, h);
y = linspace(-r, r, h);
[X, Y] = meshgrid(x, y);
Z = X + 1i*Y;
q = k*ones(size(Z));
z = Z;
for n = 0:k
z = z.*z+Z; h = abs(z)>2;
z(h) = NaN; q(h) = n;
end
imagesc(q)
colormap([hot;1 1 1])
axis equal; axis off
Image
Remix Tree