about summary refs log tree commit diff
path: root/main.go
blob: 454abe547fe6af3d657c5241be0d764f529fb0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package main

import (
	"./draw"
	"./forces"
	"./structs"
)

func main() {
	// the slice starsSlice stores the star structures
	starsSlice := []structs.Star{
		{structs.Coord{X: 100, Y: 100}, structs.Force{0, 0}, 1000},
		{structs.Coord{X: 200, Y: 300}, structs.Force{0, 0}, 1000},
		{structs.Coord{X: 100, Y: 500}, structs.Force{0, 0}, 1000},
	}

	forces.CalcAllForces(starsSlice)
	draw.Slice(starsSlice, "out.png")
}