35#include "ramCanvas.hpp"
38using cplx = std::complex<double>;
39using ct_t = mjr::ramCanvas3c8b::colorType;
46 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
47 const double ar = 16/9.0;
48 const int hdLevel = 4;
49 mjr::ramCanvas3c8b theRamCanvas(960*hdLevel, 540*hdLevel, -2.2*ar, 2.2*ar, -2.2, 2.2);
52 for(
int y=0;y<theRamCanvas.getNumPixY();y++) {
53 if (0==(y % (hdLevel*20)))
54 std::cout <<
"LINE: " << y <<
" of " << (540*hdLevel) << std::endl;
55 for(
int x=0;x<theRamCanvas.getNumPixX();x++) {
56 cplx fz = f(cplx(theRamCanvas.int2realX(x), theRamCanvas.int2realY(y)));
78 aColor.csSet<ct_t::cs2dIdxPalArg<ct_t::csCColdeRainbow, 3, 5.0, 20.0, 2.0, 1>>(fz);
89 theRamCanvas.drawPoint(x, y, aColor);
92 theRamCanvas.writeTIFFfile(
"cplxColor.tiff");
93 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
94 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
101 return 1.0/(z+1.0) + 1.0/(z-1.0);
160 std::cout <<
"Something went wrong!!" << std::endl;
int main(int argc, char *argv[])