Documentation
¶
Index ¶
- func PlotFullOrbitLine(p *plot.Plot, orb orbcore.Orbit, c color.RGBA, legend bool) error
- func PlotFullOrbitLines(p *plot.Plot, orbits []orbcore.Orbit, colors []color.RGBA, legend bool) error
- func PlotInnerSolarSystemLines(p *plot.Plot, legend bool) error
- func PlotOuterSolarSystemLines(p *plot.Plot, legend bool) error
- func PlotPoints(p *plot.Plot, orb []*orbcore.Orbit, c []color.RGBA, legend bool) error
- func PlotSolarSystemLines(p *plot.Plot, legend bool) error
- func PlotSun(p *plot.Plot) error
- func PositionToPointsXY(rows []*orbcore.Position) plotter.XYs
- func Rainbow(numOfSteps, step int) color.RGBA
- func RainbowList(numOfSteps int) []color.RGBA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlotFullOrbitLine ¶
PlotFullOrbitLine takes a plot and orbit and draws a line for its full orbit in the provided color
func PlotFullOrbitLines ¶
func PlotFullOrbitLines(p *plot.Plot, orbits []orbcore.Orbit, colors []color.RGBA, legend bool) error
PlotFullOrbitLines plots the full orbits of the provided orbits on the plot
func PlotInnerSolarSystemLines ¶
PlotInnerSolarSystemLines plots the major planets of the inner solar system on the provided plot
func PlotOuterSolarSystemLines ¶
PlotOuterSolarSystemLines plots the major planets of the outer solar system on the provided plot
func PlotPoints ¶
PlotPoints renders a point for each orbit object paired with the color list
func PlotSolarSystemLines ¶
PlotSolarSystemLines plots the major planets of the solar system on the provided plot
func PositionToPointsXY ¶
PositionToPointsXY Converts many Position objects to something that can be plotted.
func RainbowList ¶
RainbowList returns a list of colours
Types ¶
This section is empty.