https://github.com/vkazanov/fractals-in-c
Simple fractal generators written in pure C
https://github.com/vkazanov/fractals-in-c
Last synced: 3 months ago
JSON representation
Simple fractal generators written in pure C
- Host: GitHub
- URL: https://github.com/vkazanov/fractals-in-c
- Owner: vkazanov
- Created: 2020-12-15T15:59:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-31T14:41:59.000Z (over 4 years ago)
- Last Synced: 2025-03-15T01:47:49.265Z (3 months ago)
- Language: C
- Homepage:
- Size: 117 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
A few fractal-generating programs from a vintage book ([[https://www.amazon.co.uk/Fractal-Programming-Roger-T-Stevens/dp/1558510370/][Fractal Programming in C]]).
1989-style C code was completely rewritten, and generates [[https://en.wikipedia.org/wiki/Netpbm#File_formats][Netpbm]] files now.The book is ok, but there's no particular reason I would recommend it over any other book.
* Compiling and running
Examples should easy to build on any Linux using a recent GCC and GNU Make:
#+begin_src shell-script
make
# -o for an output file
./mandelbrot -o output.ppm
see output.ppm
#+end_srcSome of the programs accept additional arguments but defaults should be fine too.
* A few examples
Mandelbrot set:
[[file:examples/mandelbrot.png]]
Peano curve:
[[file:examples/peano.png]]
Hilbert curve:
[[file:examples/hilbert.png]]
Bifurcation equation:
[[file:examples/bifurcation.png]]
A simple tree:
[[file:examples/tree.png]]
Koch snowflake:
[[file:examples/koch.png]]
Sierpinsky triangle:
[[file:examples/sierpinski.png]]