Skip to content

Go module to render images of football kits from English descriptions

License

Notifications You must be signed in to change notification settings

monashunisoccer/footballkit

Repository files navigation

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/

About

Go module to render images of football kits from English descriptions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages