35#include "ramCanvas.hpp"
38typedef mjr::ramCanvas3c8b::colorType ct;
42 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
43 const int IMGSIZ = 7680;
44 const int NUMITR = 1024;
45 const double MAXZ = 4.0;
46 mjr::ramCanvas3c8b theRamCanvas(IMGSIZ, IMGSIZ, -2.2, 2.2, -2.2, 2.2);
48 std::complex<double> c(-0.4, 0.6);
49 for(
int y=0;y<theRamCanvas.getNumPixY();y++) {
50 for(
int x=0;x<theRamCanvas.getNumPixX();x++) {
51 std::complex<double> z = theRamCanvas.int2real(x, y);
53 while((std::norm(z)<MAXZ) && (count<=NUMITR)) {
58 theRamCanvas.drawPoint(x, y, ct::csCColdeFireRamp::c(
static_cast<ct::csIntType
>(count*20)));
61 theRamCanvas.writeTIFFfile(
"julia.tiff");
62 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
63 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])