34#include "ramCanvas.hpp"
37typedef mjr::ramCanvas3c8b::colorType ct;
41 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
42 const int NUMITR = 1024;
43 const int IMXSIZ = 7680/2;
44 const int IMYSIZ = 7680/2;
46 mjr::ramCanvas3c8b theRamCanvas(IMXSIZ, IMYSIZ, -1.5, 4.25, -2.875, 2.875);
48 for(
int y=0;y<theRamCanvas.getNumPixY();y++) {
49 for(
int x=0;x<theRamCanvas.getNumPixX();x++) {
50 std::complex<double> c(theRamCanvas.int2realX(x), theRamCanvas.int2realY(y));
51 if (std::norm(c)>1e-5) {
52 std::complex<double> z(0.0, 0.0);
55 while((std::norm(z)<50) && (count<=NUMITR)) {
60 theRamCanvas.drawPoint(x, y, ct::csCColdeFireRamp::c(
static_cast<ct::csIntType
>(count*15)));
64 theRamCanvas.writeTIFFfile(
"invertedMandelbrot.tiff");
65 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
66 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])