fortune

package
v0.0.0-...-d990dd0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package fortune

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Average

func Average(numbers []int) float64

Average sum all the numbers and divide by the length of the list.

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

func GetAverageColorAndMakeAdjust(image image.Image) (int, int, int)

GetAverageColorAndMakeAdjust different from k-means algorithm,it uses origin plugin's algorithm.(Reduce the cost of averge color usage.)

func LoadFontFace

func LoadFontFace(filePath string, size float64) font.Face

LoadFontFace load font face once before running, to work it quickly and save memory.

func RandSenderPerDayN

func RandSenderPerDayN(uid int64, n int) int

RandSenderPerDayN 每个用户每天随机数

func SplitChineseString

func SplitChineseString(s string, length int) []string

SplitChineseString Split Chinese type chart.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL