From 95c756e854b1e9fa5aaa44893a1c7370ac1edcfb Mon Sep 17 00:00:00 2001 From: "Brandon C. Irizarry" Date: Thu, 5 Mar 2026 21:24:09 -0500 Subject: feat: change colors to green on black --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 7779bf6..7bdf3f3 100644 --- a/main.go +++ b/main.go @@ -11,13 +11,13 @@ import ( ) var palette = []color.Color{ - color.White, color.Black, + color.RGBA{0x00, 0xff, 0x00, 0xff}, } const ( - whiteIndex = iota - blackIndex + backgroundIndex = iota + foregroundIndex ) func main() { @@ -55,7 +55,7 @@ func newImage(size, cycles int, phase, res, freq float64) *image.Paletted { for t := 0.0; t < float64(cycles)*2*math.Pi; t += res { x := math.Sin(t) y := math.Sin(t*freq + phase) - img.SetColorIndex(size+int(x*float64(size)+0.5), size+int(y*float64(size)+0.5), blackIndex) + img.SetColorIndex(size+int(x*float64(size)+0.5), size+int(y*float64(size)+0.5), foregroundIndex) } return img -- cgit v1.2.3