Documentation
¶
Index ¶
- Variables
- func Cover(top image.Image, bg image.Image, x0 int, y0 int, offsetX int, offsetY int) *image.RGBA
- func CoveyImage(image image.Image, startX float64, startY float64, height float64, ...)
- func Cut(fileName string, x0 int, y0 int, x1 int, y1 int) (image.Image, error)
- func GetFontFace(fontSize float64, dpi float64) (font.Face, error)
- func Inventory(invPath string, skinPath string, scale int) (image.Image, error)
- func LoadFont(path string) error
- func NewImageWithBackground(width float64, height float64, color color.Color, face font.Face) *gg.Context
- func PrintChar(startX float64, startY float64, c *component.Component, ctx *gg.Context, ...) (float64, float64)
- func Resize(img image.Image, width int, height int) image.Image
- func WithFontFace(fontSize float64, dpi float64, invoke func(face font.Face)) error
- type Assets
- type Options
- type Skin
Constants ¶
This section is empty.
Variables ¶
View Source
var Font *opentype.Font
Functions ¶
func CoveyImage ¶
CoveyImage draw one image onto another with resize
func NewImageWithBackground ¶
func NewImageWithBackground(width float64, height float64, color color.Color, face font.Face) *gg.Context
NewImageWithBackground create image with background color
Types ¶
Click to show internal directories.
Click to hide internal directories.