about summary refs log tree commit diff
diff options
context:
space:
mode:
authoremile <hanemile@protonmail.com>2018-10-17 11:22:29 +0200
committeremile <hanemile@protonmail.com>2018-10-17 11:22:29 +0200
commit079789a3d5bf873a2403dfe357b06d1a72463251 (patch)
treeef968f146dd54409dd586fa51ee8ac90f62b768e
parent222add666c5d920e704212d336a69f3ba1dc495c (diff)
Defined variables bundling useful stuff in one place, implementing a config file will be easy!
-rw-r--r--main.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/main.go b/main.go
index 7aa389f..d6297c5 100644
--- a/main.go
+++ b/main.go
@@ -13,22 +13,19 @@ import (
 func main() {
 	logplus.SetLogLevel(logplus.LevelAll)
 	var threads int = 8
-	var path1 string = "out_0.png"
 	var frames int = 1
+	var rangeStart int = 0
+	var rangeEnd int = 25000
 
 	// the slice starsSlice stores the star structures
 	starsSlice := []structs.Star2D{
-		//		{C: structs.Vec2{X:  30000,  Y: 30000},M: 5E8},
-		//		{C: structs.Vec2{X: -30000,  Y: 30000},M: 5E8},
-		//		{C: structs.Vec2{X: -30000           },M: 5E8},
-		//		{C: structs.Vec2{X:  30000, Y: -30000},M: 5E8},
 		{C: structs.Vec2{}, M: 5E8},
 	}
 
 	logplus.LogNeutral("Opening the csv")
-	starsSlice = csv.Import("data/U_ALL.csv", 0, 25000, starsSlice)
+	starsSlice = csv.Import("data/U_ALL.csv", rangeStart, rangeEnd, starsSlice)
 
-	// Simulate the position of the stars after a specific time
+	// Simulate frames
 	for i := 0; i < frames; i++ {
 		logplus.LogPositive("--- --- --- --- ---")
 		logplus.LogPositive(fmt.Sprintf("Frames %d/%d", i, frames))