https://github.com/jeslie0/julia-mandel
Code for generating Mandelbrot Sets and Julia Sets
https://github.com/jeslie0/julia-mandel
fractal julia mandelbrot
Last synced: over 1 year ago
JSON representation
Code for generating Mandelbrot Sets and Julia Sets
- Host: GitHub
- URL: https://github.com/jeslie0/julia-mandel
- Owner: jeslie0
- Created: 2016-04-10T14:27:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-05-18T16:04:11.000Z (about 4 years ago)
- Last Synced: 2025-01-16T16:26:33.142Z (over 1 year ago)
- Topics: fractal, julia, mandelbrot
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Julia-mandel
Code for generating Mandelbrot Sets, Julia Sets and tweeting them.
To simply make an Julia Set, compile Julia.c and run "a.out c_real c_imaginary".
To tweet a Julia set image, make sure that tweet.py and Julia.py are in the same folder. Make a Twitter Application and edit the required fields in tweet.py to link it to your account. Then run tweet.py. Requires PILLOW, tweepy.
With help from [[https://github.com/majaha][majaha]].
* Tweet
To tweet a random julia set, you need to first make an account with [[https://developer.twitter.com][https://developer.twitter.com]] and get your API keys. Then, put them into a file (say =keys=) with the following four lines:
#+begin_src conf
#+end_src
Then call =tweet.py= with this as an argument.
#+begin_src shell
python3 tweet.py keys
#+end_src
This will make and tweet the generated Julia image.
* Nix
This project is packaged as a nix flake. If you use flakes, you can do the following:
#+begin_src shell
nix run github:jeslie0/julia-mandel#juliac # Generates the julia set for the given complex number
nix run github:jeslie0/julia-mandel#tweet # Generates and tweets a Julia Set
#+end_src