Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arl/mandelgif
Generate animated gifs of zoom into the Mandelbrot set
https://github.com/arl/mandelgif
Last synced: 29 days ago
JSON representation
Generate animated gifs of zoom into the Mandelbrot set
- Host: GitHub
- URL: https://github.com/arl/mandelgif
- Owner: arl
- License: mit
- Created: 2021-10-09T16:56:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T16:34:57.000Z (over 1 year ago)
- Last Synced: 2024-06-20T02:01:43.379Z (5 months ago)
- Language: Go
- Size: 307 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mandelgif
Generate animated gifs of zoom into the [Mandelbrot Set](https://en.wikipedia.org/wiki/Mandelbrot_set), like this one:![](example.gif)
## Installation
To clone the source code:
```
git clone [email protected]:arl/mandelgif.git
```To import the module as a dependency to your project (library):
```
go get github.com/arl/mandelgif@latest
```To build and install the `mandelgif` executable on your system:
```
go install github.com/arl/mandelgif/cmd/mandelgif@latest
```## Usage:
```
mandelgif: renders a zoom of the Mandelbrot set into an animated Gif.Usage:
./mandelgif [options] [OUTFILE]General Options:
-help Prints this help message
-f -frames NUM Produce an animation with NUM frames. default 50
-z -zoom FACTOR Apply this zoom factor between successive frames. default 0.93)
-p -point COMPLEX Zoom on this point in the complex plane. default "A" (i.e. '0.272195+0.00540474i')
-w -width PIXELS Width of the output GIF image. default 256
-h -height PIXELS Height of the output GIF image. default 256
-i -iter ITER Apply a maximum of ITER iterations on 𝒛. default 1024Notes:
* OUTFILE defaults to out.gif
* The zoom point option "--point" accepts one of the following:
- a complex numbers in the form "x+yi"
- a letter from "A" to "F". Each letter represents a predefined interesting zoom point
```## Disclaimer
This program is voluntarily **not** optimized. Making it go faster is let as an exercice to the reader!
## [MIT license](./LICENSE)