blob: 99d4b60ee565f4180edbae7f1ad4f4abc10af28d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
struct Params {
double cx, cy, imgw;
int16_t maxit;
};
struct Mandel;
Params mandel_default_params();
Mandel* mandel_init(int w, int h);
void mandel_free(Mandel *ctx);
double mandel_imgh(const Mandel *ctx, const Params *par);
// dst[3*w*h]
void mandel_render(uint8_t *dst, Mandel *ctx, const Params *par, size_t subsample);
|