added parsing, isn't functional yet. there are some tests to be deleted later

This commit is contained in:
Cem
2026-06-18 18:07:03 +02:00
parent b97b37bd8d
commit d3c796386f
2 changed files with 138 additions and 3 deletions
+1 -2
View File
@@ -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;