Documentation ¶
Index ¶
- Constants
- func AutoResizeImage(h uint, img image.Image) image.Image
- func DownloadImageFromUrl(name, folder, url string) (image.Image, error)
- func FindBoxArtUrl(title string, isBoxArt bool, serperAPIKey string) (string, error)
- func LoadFonts()
- func ResizeAndCropImage(w, h uint, img image.Image) image.Image
- func ResizeImage(w, h uint, img image.Image) image.Image
- type BarChartItem
- type SaveableDrawing
Constants ¶
View Source
const ( W = 1080 H = 1920 Ratio = 2 //BarColor = "#B4F8C8" //BackgroundColor = "#000000" IconColor = "#FFF" BarColor = "#FCA311" BackgroundColor = "#14213D" TitleFontSize = 48 BoldFontSize = 20 RegularFontSize = 14 )
Variables ¶
This section is empty.
Functions ¶
func DownloadImageFromUrl ¶
func FindBoxArtUrl ¶
Types ¶
type BarChartItem ¶
type SaveableDrawing ¶
func RenderMostPlayedWrapped ¶
func RenderMostPlayedWrapped(title string, data []BarChartItem, n int) SaveableDrawing
Click to show internal directories.
Click to hide internal directories.