76#include "ramCanvas.hpp"
80 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
81 mjr::ramCanvas3c8b theRamCanvas(2048, 2048, -1.5, 0.7, -1.6, .6);
83 mjr::ramCanvas3c8b::colorType acl;
84 mjr::point2d<double> cpt = {0.0, 0.0};
85 for(
int n=0;n<100000;n++) {
87 cpt = { 0.5*cpt.y+0.5*cpt.x, 0.5*cpt.y-0.5*cpt.x };
88 acl = mjr::ramCanvas3c8b::colorType::cornerColorEnum::RED;
90 cpt = { (-0.5*cpt.y)+0.5*cpt.x-0.5, 0.5*cpt.y+0.5*cpt.x-0.5 };
91 acl = mjr::ramCanvas3c8b::colorType::cornerColorEnum::GREEN;
94 theRamCanvas.drawPoint(cpt, acl);
97 theRamCanvas.writeTIFFfile(
"LevyCurve.tiff");
99 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
100 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])