draw

package
v0.0.0-...-d2d75ee Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

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 GetAverageBGColor

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

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

Types

type RenderBorderColorSize

type RenderBorderColorSize struct {
	// contains filtered or unexported fields
}

func DrawBorderString

func DrawBorderString(s string, size int, x float64, y float64, ax float64, ay float64) []RenderBorderColorSize

DrawBorderString Draw the border of the string.

Jump to

Keyboard shortcuts

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