• Remix
  • Share
  • New Entry

on 10 Oct 2022
  • 8
  • 32
  • 0
  • 0
  • 234
% Create 2d grid
k = pi;
m = 500;
x = linspace(-k,k,m);
y = linspace(-k,k,m);
[X,Y] = meshgrid(x,y);
% Create complex grid
Z = X+1i*Y;
% Change this complex function!
W = ((Z.^2-1).*(Z-2-1i).^2)./(Z.^2 + 2 + 2i);
% Choose a coloring scheme from 1 to 92!
colorScheme = 7;
hsvImg = domainColoring(W, colorScheme);
imgRGB = hsv2rgb(hsvImg);
image(imgRGB);
axis square off
Remix Tree