36#include "ramCanvas.hpp"
39typedef mjr::color3c8b::csCC_tpl<mjr::color3c8b::cornerColorEnum::BLUE,
40 mjr::color3c8b::cornerColorEnum::RED,
41 mjr::color3c8b::cornerColorEnum::YELLOW,
42 mjr::color3c8b::cornerColorEnum::WHITE> csCCbs;
46 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
47 const int NUMITR = 1024;
48 const int MAXMAG = 15;
49 const int IMGSIZ = 7680/4;
52 mjr::ramCanvas3c8b escRamCanvas(IMGSIZ, IMGSIZ, 1.715, 1.795, -0.022, 0.086);
56 for(
int y=0;y<escRamCanvas.getNumPixY();y++) {
57 for(
int x=0;x<escRamCanvas.getNumPixX();x++) {
58 double cx = escRamCanvas.int2realX(x), cy = escRamCanvas.int2realY(y);
59 double zx = 0.0, zy = 0.0;
62 while(((zx*zx+zy*zy)<MAXMAG) && (count<=NUMITR)) {
64 t = zx*zx - zy*zy - cx;
65 zy = std::abs(2*zx*zy) - cy;
69 escRamCanvas.drawPoint(x, y, csCCbs::c(
static_cast<mjr::ramCanvas3c8b::csIntType
>(count*10)));
73 escRamCanvas.writeTIFFfile(
"BurningShip.tiff");
74 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
75 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])