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 = 1080*4;
44 const int NUMITR = 55;
45 const double MAXZ = 4.0;
46 mjr::ramCanvas3c8b theRamCanvas(WIDTH, HEIGHT, -0.111, 0.111, -1.23, -1.03);
47 for(
int y=0;y<theRamCanvas.getNumPixY();y++) {
48 for(
int x=0;x<theRamCanvas.getNumPixX();x++) {
49 std::complex<double> c(std::abs(theRamCanvas.int2realX(x))-0.124, theRamCanvas.int2realY(y));
50 std::complex<double> z(-1.6, 0.0001);
52 while((std::norm(z)<MAXZ) && (count<=NUMITR)) {
53 z = std::complex<double>(std::abs(std::real(z)), std::abs(std::imag(z)));
54 double m = std::abs(z);
60 theRamCanvas.drawPoint(x, y, ct::csCCfractal0RYBCW::c(
static_cast<ct::csIntType
>(count*20)));
63 theRamCanvas.writeTIFFfile(
"butterfly.tiff");
64 std::chrono::duration<double> runTime = std::chrono::system_clock::now() - startTime;
65 std::cout <<
"Total Runtime " << runTime.count() <<
" sec" << std::endl;
int main(int argc, char *argv[])