Documentation ¶
Index ¶
- Variables
- func SplitSlice[T any](items []T, splitSize int) [][]T
- type Colors
- type Fonts
- type Generator
- func (g *Generator) ColorOf(rarity string) GradientColor
- func (g *Generator) GenerateItemshop(items []fortnite.ItemShopItem) (image.Image, error)
- func (g *Generator) GenerateItemshopIcon(item fortnite.ItemShopItem) (image.Image, error)
- func (g *Generator) GetImage(filename string) (image.Image, error)
- type GradientColor
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTooMuchItem = errors.New("items are more than supported items in a tab")
)
Functions ¶
func SplitSlice ¶
Types ¶
type Colors ¶
type Colors struct { DefaultBackground GradientColor Rarities map[string]GradientColor }
type Fonts ¶
type Fonts struct { Burbank *llamaimage.LlamaFont KalamehBold *llamaimage.LlamaFont }
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) ColorOf ¶
func (g *Generator) ColorOf(rarity string) GradientColor
func (*Generator) GenerateItemshop ¶
func (*Generator) GenerateItemshopIcon ¶
Click to show internal directories.
Click to hide internal directories.