Documentation ¶
Overview ¶
Package heraldry implements methods for randomly generating heraldic coats of arms and their associated blazons.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Blazon string `json:"blazon"` Field field.Field `json:"field"` ImageURL string `json:"image_url"` FileName string `json:"file_name"` GUID string `json:"guid"` }
Device is the entire coat of arms
func GenerateByParameters ¶
GenerateByParameters generates a random heraldic device fitting certain criteria.
func (Device) RenderToBlazon ¶
RenderToBlazon renders a device as its blazon and returns it.
func (Device) RenderToPNG ¶
RenderToPNG renders a device as PNG and returns the image
func (Device) Simplify ¶
func (device Device) Simplify() SimplifiedDevice
Simplify returns a simplified device
type SimplifiedDevice ¶
SimplifiedDevice is a simplified version of an heraldic device meant for JSON display
Click to show internal directories.
Click to hide internal directories.