But, for now, having access to the *Line object allows us to play around with the styling a bit more. To set the right mood with the rather gloomy nature of this chapter, I have chosen a stark black line (in fact, I have grown rather fond of the stark black line charts and have started using them in my daily plots as well). A point to note is that I did this:
l.LineStyle.Color = color.RGBA{A: 255}
l.LineStyle.Color takes color.Color—color.RGBA is a struct found in the color library in the standard library. It's a struct that has four fields representing a color, such as Red, Green, Blue, and Alpha. Here I take advantage of Go's default values—0s. But having an Alpha value of 0 would mean that it's invisible. Hence, I only set the ...