gologo

package
v0.0.0-...-01a1fb0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *logo

func ParseHexColor

func ParseHexColor(s string) (c color.RGBA, err error)

将字体颜色(#5FB878)转成 color.RGBA

func ParseHexColorFast

func ParseHexColorFast(s string) (c color.RGBA, err error)

Types

type Font

type Font struct {
	File  string
	Size  float64
	DPI   float64
	Text  string
	Color string
}

func NewFont

func NewFont(text string, size float64, color string, file string) Font

默认 dpi 为 72

Jump to

Keyboard shortcuts

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