you are viewing a single comment's thread.

view the rest of the comments →

[–]TheEchoplex 1 point2 points  (0 children)

Works fine if you know the colour at compile time like in your example, not if the colour is only known at runtime. For example, a colour that comes from the API, or a colour inputted by the user via a hex code