Just run the following code in the REPL to install the package.
using Pkg
Pkg.add("https://github.com/inokawazu/SchwarzschildGeo.jl")using SchwarzschildGeo
schpic() #uses the default pictureThe output will be an array of RGBs. You can save the output with Images.save.
The packages Images is needed for this.
using SchwarzschildGeo
schpic("<pathtoimagefile>"; r0=<number greater than one>)
#use your own image file with a different r0 which is the radial position
#of the camera.As with the example the output will be an array of RGBs.
You can save the output with save.
r0 needs to be greater that one because the horizon is located at
- Write down an explainer
- Check performance
- Refactor
