Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

inokawazu/SchwarzschildGeo.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go here for updated package

black_hole_example

Installation

Just run the following code in the REPL to install the package.

using Pkg
Pkg.add("https://github.com/inokawazu/SchwarzschildGeo.jl")

Example

using SchwarzschildGeo
schpic() #uses the default picture

The output will be an array of RGBs. You can save the output with Images.save. The packages Images is needed for this.

Usage

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 $r=1$.

DoTos

  • Write down an explainer
  • Check performance
  • Refactor

About

A julia package that simulates the view of a Schwarzschild black hole.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages