CImg icon indicating copy to clipboard operation
CImg copied to clipboard

suggested example for pdf reference document Section 8.1.4.466 draw_mandelbrot()

Open pwplus7 opened this issue 5 years ago • 0 comments

CImg img = CImg (401,401,1,3), cmap= CImg (256,1,1,3); CImgDisplay disp(img,"Julia Fractal");

//{real,imag} Julia constants const double Jri[7][2] = { { 0.317, 0.029 }, { -0.348827, 0.607167 }, { -0.786268, 0.169728 }, { -0.80, 0.156 }, };

for (int Jk=0 ; Jk< 4; Jk++) { img.draw_mandelbrot (0,0, 400,400, cmap.lines_LUT256(),1.0, -1.0, 1.0, 1.0,-1.0, 260, false,true, Jri[Jk][0], Jri[Jk][1] ); disp.display(img).wait(5000) ; }

pwplus7 avatar Aug 26 '20 21:08 pwplus7