Generate mandelbrot images using many clustered computers

types.h 678B

    #ifndef TYPES_H #define TYPES_H #define MIN(X, Y) (((X) < (Y)) ? (X) : (Y)) #define MAX(X, Y) (((X) > (Y)) ? (X) : (Y)) typedef struct { char red; char green; char blue; } Pixel; typedef struct { int w, h; //double center[2]; char cX_str[32000]; char cY_str[32000]; double zoomBase; long zoomExp; long maxIter; int batch; } Config; typedef struct { int w; int h; Pixel *buf; } FBuffer; #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_GREEN "\x1b[32m" #define ANSI_COLOR_YELLOW "\x1b[33m" #define ANSI_COLOR_BLUE "\x1b[34m" #define ANSI_COLOR_MAGENTA "\x1b[35m" #define ANSI_COLOR_CYAN "\x1b[36m" #define ANSI_COLOR_RESET "\x1b[0m" #endif