galaxy-gio

command module
v0.0.0-...-816c5a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2020 License: MIT, Unlicense Imports: 23 Imported by: 0

README

galaxy-gio

This is a gio-based visualization of gonum's barneshut simulation example.

screenshot of galaxy visualization

About

This program generates a random collection of masses with different starting points and vectors, then simulates their gravitic interactions. Each time you start the program, it uses the current time as the seed, so you will not see the same galaxy twice.

The sizes of the dots represent the mass of the star. The larger the dot, the more massive the star is.

The colors of the dots represent the magnitude of the velocity vector of the star. The more red is apparent in the color, the slower (relative to the average star) that star is going. The more blue is apparent in the color, the faster that star is moving (relative to the average star).

Features

  • You can play/pause the simulation.
  • You can select regions of the visuzation to zoom in, and there is a button to clear the zoom.

Licensing

The code adapted from the gonum example is in the file gonum.go, and is licensed under the 3-clause BSD license included in this repo as LICENSE-gonum. The remaining code is dual licensed UNLICENSE/MIT, and the license terms may be found in the file LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL