• Remix
  • Share
  • New Entry

on 7 Oct 2021
  • 54
  • 40
  • 1
  • 0
  • 274
% Julia set
% By Victoria A. Sablina and Andrey Tarasov
n=999;
A=zeros(n,n,3);
for x=1:n
for y=1:n
h=0;
z=(x/250-2)*i+(y/250-2);
for h=1:255
z=z^6+i*-.652+.89599;
if abs(z)>2
break;
end
end
if h>254
w=real(z);
A(x,y,1)=sin(w);
A(x,y,2)=cos(w*10);
A(x,y,3)=cos(w*100);
end
end
end
r=200:799;
A(~A)=255;
imshow(A(r,r,:));
title('MATLAB Central 20^{th} anniversary!!!');
Remix Tree