Documentation
¶
Index ¶
- func DrawBadges(ctx *gg.Context, imageCache *database.Cache, user *UserData, w, h int)
- func DrawBadgesWrapped(ctx *gg.Context, imageCache *database.Cache, user *UserData, w, h int, ...)
- func DrawVerticalBadges(ctx *gg.Context, imageCache *database.Cache, user *UserData, w, h int)
- func GetAsset(path string, imageCache *database.Cache) image.Image
- func GetColorLuminance(color color.RGBA) float64
- func GetCompatibleFontColor(hex_color string) string
- func GetFont(font string, points float64) *font.Face
- func GetImageFromURL(url string, w int, h int, db *database.Database) image.Image
- func GetProfileCustomization(toSearch string, custom []string) bool
- func GetResizedAsset(path string, w, h int) (image.Image, bool)
- func ShadeColor(color string, percent float64) string
- func StrokeText(ctx *gg.Context, text string, x, y, size int, ax, ay float64, color string)
- type I18n
- type MarryData
- type ProfileData
- type UserData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawBadges ¶
func DrawBadgesWrapped ¶
func DrawVerticalBadges ¶
func GetColorLuminance ¶
func GetCompatibleFontColor ¶
func GetImageFromURL ¶
func GetProfileCustomization ¶
func ShadeColor ¶
Types ¶
type ProfileData ¶
type UserData ¶
type UserData struct {
Color string `json:"color"`
Image string `json:"image"`
Id string `json:"id"`
Avatar string `json:"avatar"`
Votes uint16 `json:"votes"`
Info string `json:"info"`
Badges []uint8 `json:"badges"`
HiddingBadges []uint8 `json:"hiddingBadges"`
Username string `json:"username"`
Mamadas int32 `json:"mamadas"`
Mamou int32 `json:"mamou"`
Title string `json:"title"`
MarryDate string `json:"marryDate"`
MarryUsername string `json:"marryUsername"`
Married bool `json:"married"`
}
Click to show internal directories.
Click to hide internal directories.