Colors
Syntax
RESOURCE.Colors
Returns
[]string
{{ with resources.Get "images/a.jpg" }}
{{ .Colors }} → [#bebebd #514947 #768a9a #647789 #90725e #a48974]
{{ end }}
This method is fast, but if you also scale down your images, it would be good for performance to extract the colors from the scaled image.