Skip to content

Latest commit

 

History

History
61 lines (34 loc) · 1.32 KB

README.md

File metadata and controls

61 lines (34 loc) · 1.32 KB

footballkit

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.

Monash University Soccer Club (pre 2018)

RenderImage("body stripes skyblue white shorts navy socks navy")

kit

Manchester United

RenderImage("body red shorts white socks black")

kit

Aston Villa

RenderImage("body claret shorts white socks light blue")

kit

Celtic

RenderImage("hoops green white shorts white socks green")

kit

Peru

RenderImage("leftsash white red shorts white socks red")

kit

Croatia

RenderImage("checks red white shorts white socks blue")

kit

Build

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/