I have been able to take that code and modify it slightly for my project but currently I still have to reference each color individually as opposed to just passing LightGray where a RGBA value is expected.
Are colors always hard coded each time you want to use it or is there another preferred way of mapping these ?
There's a colornames package in golang.org/x/image that has a ton of color names, all the ones that you'll find in a browser / the svg spec. https://godoc.org/golang.org/x/image/colornames
Hello,
Is it possible to have a "friendly" set of color names?
Something similar to this Basic Colors.
I have been able to take that code and modify it slightly for my project but currently I still have to reference each color individually as opposed to just passing LightGray where a RGBA value is expected.
Are colors always hard coded each time you want to use it or is there another preferred way of mapping these ?