Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Charge ¶
type Charge interface { Blazon(count int, tincture string) (string, error) GetTags() []string Render(bodyTincture tincture.Tincture) image.Image }
Charge is an interface for charges
func MatchingTag ¶
MatchingTag returns all charges that match a tag
func RandomMatchingTag ¶
RandomMatchingTag returns a random charge that matches a tag
type Cross ¶
type Cross struct{}
Cross is a cross ordinary
type Data ¶
type Data struct {
Charges []Raster `json:"charges"`
}
Data is a struct containing a slice of Charges
type Fess ¶
type Fess struct{}
Fess is a fess ordinary
type Group ¶
Group is a group of charges with a common tincture
func RandomGroup ¶
RandomGroup returns a random group of charges
func RandomGroupByParameters ¶
func RandomGroupByParameters(fieldTincture tincture.Tincture, tag string, numberOfCharges int) (Group, error)
RandomGroupByParameters returns a charge group matching the given parameters. Blank or zero values will return random results for the given parameter.
func (Group) RenderBlazon ¶
RenderBlazon returns a string description of the blazon of a charge group
type Pale ¶
type Pale struct{}
Pale is a pale ordinary
type Raster ¶
type Raster struct { Identifier string `json:"identifier"` Name string `json:"name"` Noun string `json:"noun"` NounPlural string `json:"noun_plural"` Descriptor string `json:"descriptor"` SingleOnly bool `json:"single_only"` Tags []string `json:"tags"` }
Raster is a charge that is rendered from a raster file
Click to show internal directories.
Click to hide internal directories.