Misc - not an issue
sivssdn opened this issue · comments
Paras Bhattrai commented
Hi,
If this app was to scale, would it be safe to create a single map[string]color.RGBA instead of separate colorNames and colors. A little mis-typing could break
randColorName := rand.Int()%len(colorNames)
randColor := rand.Int() % len(colors)
Just thoughts, :)
Was thinking to try map instead of win.JustPressed(pixelgl.Key1) to reduce if else decision tree.