add smooth coloring, precision updating(needs work)

This commit is contained in:
2022-07-19 20:43:34 +02:00
parent 32c36e65c1
commit 874a8f21f8
2 changed files with 70 additions and 13 deletions

View File

@ -32,16 +32,18 @@ class Mandelbrotc {
public:
Vec2mp f, t;
uint8_t thread_count;
mpfr::mpreal diff;
std::vector<std::thread> threads;
Vec2i s;
//std::vector<std::vector<uint8_t>> screen;
uint8_t **screen;
double **screen;
bool done;
uint32_t max_iter;
Mandelbrotc(Vec2mp const &f, Vec2mp const &t, Vec2i const &s, uint32_t mi);
void start_threads(bool first);
void stop_threads();
uint32_t mandelbrot(const Vec2mp &n);
double mandelbrot(const Vec2mp &n);
void calc(const uint8_t tid);
void updatePrec();
};