From 3d80c390ed8db4de50038086609aeca83a6efc8a Mon Sep 17 00:00:00 2001 From: emile Date: Mon, 8 Oct 2018 16:51:03 +0200 Subject: Draw the stars in pure white --- draw/draw.go | 6 +++--- 1 file 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) -- cgit 1.4.1