diff options
author | emile <hanemile@protonmail.com> | 2018-10-08 16:51:03 +0200 |
---|---|---|
committer | emile <hanemile@protonmail.com> | 2018-10-08 16:51:03 +0200 |
commit | 3d80c390ed8db4de50038086609aeca83a6efc8a (patch) | |
tree | d0d3f475a959f01748eab43ad7e7a6bf514deb3c /draw | |
parent | 81677b30d1e05fe7c41a9e1c0368024dba092a91 (diff) |
Draw the stars in pure white
Diffstat (limited to 'draw')
-rw-r--r-- | draw/draw.go | 6 |
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) |