35#include "ramCanvas.hpp"
39 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
40 const int NUMITR = 1024;
41 const int IMXSIZ = 7680/2;
42 const int IMYSIZ = 7680/2;
44 mjr::ramCanvas3c8b theRamCanvas(IMXSIZ, IMYSIZ, -2.75, 2.75, -2.75, 2.75);
49 for(
int y=0;y<theRamCanvas.getNumPixY();y++) {
50 for(
int x=0;x<theRamCanvas.getNumPixX();x++) {
51 std::complex<double> c(theRamCanvas.int2realX(x), theRamCanvas.int2realY(y));
52 std::complex<double> z(0.0, 0.0);
54 while((std::norm(z)<14) && (count<=NUMITR)) {
55 z=std::pow(std::conj(z), 2) + c;
59 theRamCanvas.drawPoint(x, y, mjr::ramCanvas3c8b::colorType::csCColdeFireRamp::c(
static_cast<mjr::ramCanvas3c8b::csIntType
>(count*30)));
62 theRamCanvas.writeTIFFfile(
"tricorn.tiff");
63 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
64 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])