diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | fractal-gen.c | 2 |
3 files changed, 14 insertions, 1 deletions
@@ -1,5 +1,9 @@ CFLAGS += -Wall -Wextra -Werror LDFLAGS += -lm -lpthread + +HEADERS = generator.h algorithms.h fractal-gen.h + + all: fractal-gen symlinks symlinks: fractal-gen @@ -10,6 +14,8 @@ fractal-gen: fractal-gen.o \ algorithms/mandelbrot.o \ algorithms/burning-ship.o \ +*.o: *.c $(HEADERS) + $(CC) -c -o $@ $< $(CFLAGS) clean: clean-object rm fractal-gen \ @@ -110,4 +110,11 @@ Check out [pgm-interlace][pgm-interlace] for a tool to do this job. I'm working on an example tool to do this, but there are so many palettes you could use that you might as well write your own. +### Areas of interest + +Use the `-x`, `-y` and `-z` parameters to see them. +Have a play with the iteration count; as a general rule you will need more iterations when the scale is decreased + + * Tiny lone mandelbrot (0.001643721971153 + 0.822467633298876i), scale = 0.00000000005 + [pgm-interlace]: https://github.com/phillid/pgm-interlace/ diff --git a/fractal-gen.c b/fractal-gen.c index fce146f..c5930c9 100644 --- a/fractal-gen.c +++ b/fractal-gen.c @@ -148,7 +148,7 @@ main(int argc, char **argv) toalloc = ceilf((double)toalloc/clust_total); if ((sections[i].data = malloc(toalloc)) == NULL) { - fprintf(stderr, "\nmalloc of %lu bytes failed\n", toalloc); + fprintf(stderr, "\nmalloc of %zd bytes failed\n", toalloc); perror("malloc"); /* Free already allocated chunks of memory */ |