Go module that will render images of football kits given an English description.
NOTE:
This module is mainly designed to support local (small) club teams and is used by our web page for showing possible strip clashes. It is not particularly accurate if attempting to render 'famous' club strips, though I have given a few examples here of our nearest approximation.
RenderImage("body stripes skyblue white shorts navy socks navy")
RenderImage("body red shorts white socks black")
RenderImage("body claret shorts white socks light blue")
RenderImage("hoops green white shorts white socks green")
RenderImage("leftsash white red shorts white socks red")
RenderImage("checks red white shorts white socks blue")
Install the go-bindata utility
go install github.com/go-bindata/go-bindata/...
then if any of the images (in data/
) have been modified, regenerate the static image data file.
~/go/bin/go-bindata -pkg footballkit data/