34#include "ramCanvas.hpp"
37typedef mjr::ramCanvas3c8b::colorType ct;
41 std::chrono::time_point<std::chrono::system_clock> startTime = std::chrono::system_clock::now();
42 const int WIDTH = 1920*4;
43 const int HEIGHT = 1920*4;
44 const int NUMITR = 100;
45 const double MAXZ = 4.0;
46 mjr::ramCanvas3c8b theRamCanvas(WIDTH, HEIGHT, -2.0, 2.0, -2.0, 2.0);
47# pragma omp parallel for schedule(static,1)
48 for(
int y=0;y<theRamCanvas.getNumPixY();y++) {
49 for(
int x=0;x<theRamCanvas.getNumPixX();x++) {
50 std::complex<double> c(-1.6, 0.0001);
51 std::complex<double> z(theRamCanvas.int2realX(x), theRamCanvas.int2realY(y));
53 while((std::norm(z)<MAXZ) && (count<=NUMITR)) {
54 z = std::complex<double>(std::abs(std::real(z)), std::abs(std::imag(z)));
55 double m = std::abs(z);
61 theRamCanvas.drawPoint(x, y, ct::csCCfractal0RYBCW::c(
static_cast<ct::csIntType
>(count*20)));
64 theRamCanvas.writeTIFFfile(
"kalisetJ.tiff");
65 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
66 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])