about summary refs log tree commit diff
path: root/draw
diff options
context:
space:
mode:
Diffstat (limited to 'draw')
-rw-r--r--draw/draw.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/draw/draw.go b/draw/draw.go
index 16b6ec3..177c8f1 100644
--- a/draw/draw.go
+++ b/draw/draw.go
@@ -47,7 +47,7 @@ func vectorLength(force structs.Force) float64 {
 
 func drawForce(dc *gg.Context, star structs.Star) {
 	// controll the length of the vector
-	var scalingFactor float64 = 10
+	var scalingFactor float64 = 40
 
 	// Move the "cursor" to the start position of the vector
 	dc.MoveTo(star.C.X, star.C.Y)
@@ -76,13 +76,13 @@ func drawForce(dc *gg.Context, star structs.Star) {
 
 // drawStars draws all the stars in the given slice to the given context
 func drawStars(dc *gg.Context, slice []structs.Star) {
-	dc.SetRGB(1, 1, 1)
-
 	// draw all the forces in the given slice
 	for _, star := range slice {
 		drawForce(dc, star)
 	}
 
+	dc.SetRGB(1, 1, 1)
+
 	// draw all the stars in the given slice
 	for _, star := range slice {
 		drawStar(dc, star)