https://github.com/halflinghelper/mandlebrot
Playing with the mandlebrot set in love2d
https://github.com/halflinghelper/mandlebrot
Last synced: 8 months ago
JSON representation
Playing with the mandlebrot set in love2d
- Host: GitHub
- URL: https://github.com/halflinghelper/mandlebrot
- Owner: HalflingHelper
- Created: 2022-10-10T22:51:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-12T16:10:07.000Z (over 3 years ago)
- Last Synced: 2024-12-27T07:37:53.642Z (over 1 year ago)
- Language: Lua
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Mandlebrot
I wanted to implement a mandlebrot set. I chose Lua and Love2d, because I like coding in Lua, and Love2d makes graphics less of a headache than something like SDL2 for a quick project like this.
# Running the project
In order to run the project, you will have to download [Love2d](Love2d.org). Once it is installed, use love.exe to open the src file. Alternatively, you can compress `miain.lua`, `mandlebrot.lua` and `conf.lua` into a zip file and change the extension to `.love`, which should allow you to automatically run it with `love.exe`.
At some point I might go ahead and put prebuilt executables in the releases tab.
# Customization options
You can change screen resolution, maximum number of iterations, and the soom factor by modifying the corresponding values at the top of `main.lua`. If you want to explore the julia set, change the function on line 79 of `main.lua` to `Eval_Julia`. You can modify the values of a and b in the definition of `Eval_Julia` to view the julia set at different definitions of c.