38#include "ramCanvas.hpp"
41typedef std::complex<mjr::ramCanvas3c8b::coordFltType> cplx;
45 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
47 const int NUMITR = 1024;
48 cplx c, z, zero(0.0, 0.0);
49 mjr::ramCanvas3c8b theRamCanvas(7680, 7680, -2.2, 0.8, -1.5, 1.5);
51 for(
int y=0;y<theRamCanvas.getNumPixY();y++) {
52 for(
int x=0;x<theRamCanvas.getNumPixX();x++) {
53 for(c=cplx(theRamCanvas.int2realX(x),theRamCanvas.int2realY(y)),z=zero,count=0;
54 (std::norm(z)<4)&&(count<=NUMITR);
58 theRamCanvas.drawPoint(x, y, mjr::ramCanvas3c8b::colorType::csCColdeFireRamp::c(mjr::math::ivl::wrapCC(
static_cast<mjr::ramCanvas3c8b::csIntType
>(count*20), 767)));
61 theRamCanvas.writeTIFFfile(
"mandelbrot_bm_cplx.tiff");
62 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
63 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])