34#include "ramCanvas.hpp"
35#include "MRMathCPP.hpp"
39 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
40 const int IMXSIZ = 7680/1;
41 const int IMYSIZ = 7680/1;
44 mjr::ramCanvas3c8b theRamCanvas(IMXSIZ, IMYSIZ, -1.7, 1, -1.7, 0.5);
45 theRamCanvas.clrCanvasToBlack();
47# pragma omp parallel for schedule(static,1)
48 for(
int y=0;y<theRamCanvas.getNumPixY();y++) {
50 std::cout << y << std::endl;
51 for(
int x=0;x<theRamCanvas.getNumPixX();x++) {
52 double px = theRamCanvas.int2realX(x);
53 double py = theRamCanvas.int2realY(y);
54 for(
int i=0; i<steps; i++) {
55 double pxNew = std::sin( 1.50503*py + 1.709360) - std::cos(-1.44118*px + 1.794210);
56 double pyNew = std::sin(-1.23281*px + 1.893750) - std::cos( 1.78607*py - 1.38227);
60 double r = mjr::math::ivl::wrapCO(px, 1.0);
61 double b = mjr::math::ivl::wrapCO(py, 1.0);
62 double g = mjr::math::ivl::wrapCO(atan2(px,py)/2.29, 1.0);
63 theRamCanvas.getPxColorRefNC(x, y).setChansRGB_dbl(r, g, b);
66 theRamCanvas.writeTIFFfile(
"wakOrb02.tiff");
67 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
68 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])