37#include "ramCanvas.hpp"
41 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
43 const int NUMITR = 1024;
44 mjr::ramCanvas3c8b::coordFltType xr, yr, zx, zy, tempx;
45 mjr::ramCanvas3c8b theRamCanvas(7680, 7680, -2.2, 0.8, -1.5, 1.5);
47 for(
int x=0;x<theRamCanvas.getNumPixX();x++) {
48 for(
int y=0;y<theRamCanvas.getNumPixY();y++) {
49 for(xr=theRamCanvas.int2realX(x),yr=theRamCanvas.int2realY(y),zx=zy=0.0,count=0; (zx*zx+zy*zy<4)&&(count<=NUMITR); count++,tempx=zx*zx-zy*zy+xr,zy=2*zx*zy+yr,zx=tempx)
52 theRamCanvas.drawPoint(x, y, mjr::ramCanvas3c8b::colorType::csCColdeFireRamp::c(mjr::math::ivl::wrapCC(
static_cast<mjr::ramCanvas3c8b::csIntType
>(count*20), 767)));
55 theRamCanvas.writeTIFFfile(
"mandelbrot_bm_real.tiff");
56 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
57 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])