Documentation ¶
Overview ¶
Package fortune
Index ¶
- func Average(numbers []int) float64
- func DrawBorderString(page *gg.Context, s string, size int, x float64, y float64, ax float64, ...)
- func GetAverageColorAndMakeAdjust(image image.Image) (int, int, int)
- func LoadFontFace(filePath string, size float64) font.Face
- func RandSenderPerDayN(uid int64, n int) int
- func SplitChineseString(s string, length int) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawBorderString ¶
func DrawBorderString(page *gg.Context, s string, size int, x float64, y float64, ax float64, ay float64, inlineRGB color.Color, outlineRGB color.Color)
DrawBorderString GG Package Not support The string render, so I write this (^^)
func GetAverageColorAndMakeAdjust ¶
GetAverageColorAndMakeAdjust different from k-means algorithm,it uses origin plugin's algorithm.(Reduce the cost of averge color usage.)
func LoadFontFace ¶
LoadFontFace load font face once before running, to work it quickly and save memory.
func SplitChineseString ¶
SplitChineseString Split Chinese type chart.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.