added parsing, isn't functional yet. there are some tests to be deleted later
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
static const float convergenceLimit = 2.0f;
|
||||
unsigned converge(float complex position,unsigned n);
|
||||
|
||||
void tricorn(float complex start, size_t width, ssize_t height, float res, unsigned n, _Bool color, unsigned char* img){
|
||||
void tricorn(float complex start, size_t width, ssize_t height, float res, unsigned n, _Bool color, unsigned char* img){
|
||||
|
||||
height = height < 0 ? height*-1 : height;
|
||||
|
||||
@@ -12,7 +12,6 @@ void tricorn(float complex start, size_t width, ssize_t height, float res, unsi
|
||||
|
||||
unsigned value = converge(start + (i*res + I*j*res),n);
|
||||
size_t position = (i*width +j) *3;
|
||||
|
||||
if(!color){
|
||||
img[position] = value;
|
||||
img[position + 1] = value;
|
||||
|
||||
Reference in New Issue
Block a user