diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-21 02:14:27 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-21 02:14:27 -0400 |
| commit | 00b488b32fa5e40151bf63443821c5b3c1840217 (patch) | |
| tree | b8d34621acbc3caef48dd792ea3f8661fe71dd74 /src/fractals.c | |
| parent | 81dc61d0d7b17de6944ceb55ae3c7a3f3176731d (diff) | |
implemented julia sets
Diffstat (limited to 'src/fractals.c')
| -rw-r--r-- | src/fractals.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/fractals.c b/src/fractals.c index a2a43db..2c5b42c 100644 --- a/src/fractals.c +++ b/src/fractals.c @@ -1,6 +1,3 @@ -#include <complex.h> -#include <stddef.h> -#include <stdint.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> @@ -71,8 +68,23 @@ int main(const int argc, char *argv[]) { } - mandelbrot_grid(grid, iterations); + //const long double complex c = 0.285L + 0.01L*I; + const long double complex c = -0.835L -0.321L* I; + const double R = 100; + julia_grid(grid, iterations, c, R); if(verbose)print_grid_info(grid); print_grid(grid, iterations); + + // //write grid to file + // FILE* write_file = fopen("test.grid", "wb"); + // write_grid(write_file , grid); + // fclose(write_file); + // + // //attempt to read grid from file + // FILE* read_file = fopen("test2.grid", "rb"); + // grid_t* grid2 = read_grid(read_file); + // fclose(read_file); + // + // printf("Grids are %s equal\n", grid_equal(grid, grid2) ? "exactly" :"not exactly"); } |
