Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PassColor color.Color = color.RGBA{R: 0x44, G: 0xCC, B: 0x11, A: 0xFF} WarnColor color.Color = color.RGBA{R: 0xCC, G: 0xCC, B: 0x11, A: 0xFF} FailColor color.Color = color.RGBA{R: 0xCC, G: 0x44, B: 0x11, A: 0xFF} InfoColor color.Color = color.RGBA{R: 0, G: 0x88, B: 0xCC, A: 0xFF} )
Standard colors for badges.
Functions ¶
This section is empty.
Types ¶
type Badge ¶
Badge contains all of the characteristics of a badge.
func (*Badge) ApplyDefaults ¶
func (b *Badge) ApplyDefaults()
ApplyDefaults ensures that basic properties of the badge, such as height and color, are set.
func (*Badge) CalculateWidths ¶
CalculateWidths determine the width for both halves of the badge.
Click to show internal directories.
Click to hide internal directories.