about summary refs log tree commit diff
path: root/main.go
diff options
context:
space:
mode:
authoremile <hanemile@protonmail.com>2018-10-08 16:07:16 +0200
committeremile <hanemile@protonmail.com>2018-10-08 16:07:16 +0200
commitc22f1d74b7d555c5eaa1dfaf6c357e7853ca7946 (patch)
tree0b7763e34a8258a8121335bf4d35ef08e9ccd726 /main.go
parent52ad311fb481357dad9bfd1386630be10122b215 (diff)
Drawing stuff, this is a PoC.
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/main.go b/main.go
index b6c0aeb..454abe5 100644
--- a/main.go
+++ b/main.go
@@ -1,9 +1,9 @@
 package main
 
 import (
+	"./draw"
 	"./forces"
 	"./structs"
-	"fmt"
 )
 
 func main() {
@@ -14,9 +14,6 @@ func main() {
 		{structs.Coord{X: 100, Y: 500}, structs.Force{0, 0}, 1000},
 	}
 
-	// Print the starsSlice
-	fmt.Println(starsSlice)
-
-	// Calculate the forces acting inbetween all the stars in the starsSlice slice and star nr 0 in the starsSlice slice
-	fmt.Println(forces.CalcAllForces(starsSlice))
+	forces.CalcAllForces(starsSlice)
+	draw.Slice(starsSlice, "out.png")
 }