about summary refs log tree commit diff
path: root/draw
diff options
context:
space:
mode:
authoremile <hanemile@protonmail.com>2018-10-08 16:49:25 +0200
committeremile <hanemile@protonmail.com>2018-10-08 16:49:25 +0200
commit81677b30d1e05fe7c41a9e1c0368024dba092a91 (patch)
tree83ee2a8461f308fbe7138b0b4c2a06cbac874089 /draw
parent9770d58d582e85a6272e12266a80a02366dabd55 (diff)
Commented what loops do
Diffstat (limited to 'draw')
-rw-r--r--draw/draw.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/draw/draw.go b/draw/draw.go
index db75892..16b6ec3 100644
--- a/draw/draw.go
+++ b/draw/draw.go
@@ -35,7 +35,7 @@ func saveImage(dc *gg.Context, path string) {
 
 // drawStar draws the given stars to the given context
 func drawStar(dc *gg.Context, star structs.Star) {
-	dc.DrawPoint(star.C.X, star.C.Y, 1)
+	dc.DrawPoint(star.C.X, star.C.Y, 2)
 	dc.Fill()
 	dc.Stroke()
 }
@@ -78,10 +78,12 @@ func drawForce(dc *gg.Context, star structs.Star) {
 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)
 	}
 
+	// draw all the stars in the given slice
 	for _, star := range slice {
 		drawStar(dc, star)
 	}