From 5902cbb67865f3bab477f4daca9df560f48e2be4 Mon Sep 17 00:00:00 2001 From: Renee Wang Date: Mon, 28 Jun 2021 11:50:56 -0700 Subject: [PATCH 1/2] Increased the size of the pixels. --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index f17efc8..20e32e7 100644 --- a/main.go +++ b/main.go @@ -16,12 +16,12 @@ type grid [][]bool const ( alive = true dead = false - width = 400 - height = 400 + width = 200 + height = 200 ) var ( - pixelSize = 2 + pixelSize = 4 img = newBaseImage(width, height, pixelSize) colorAlive = color.RGBA{R: 0, G: 204, B: 255} colorDead = color.Black From e94634438882aeb0448f10ec107251c08b3aaa56 Mon Sep 17 00:00:00 2001 From: Renee Wang Date: Mon, 28 Jun 2021 11:57:32 -0700 Subject: [PATCH 2/2] Use red for the pixels. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index f17efc8..d5b7072 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ const ( var ( pixelSize = 2 img = newBaseImage(width, height, pixelSize) - colorAlive = color.RGBA{R: 0, G: 204, B: 255} + colorAlive = color.RGBA{R: 255, G: 0, B: 0} colorDead = color.Black tickDelay = 10 * time.Millisecond