avatar

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 7 Imported by: 0

README

gradient-avatar

Go Reference

Default gradient avatar generation

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSVG

func CreateSVG(data SVGData) (string, error)

func GenerateGradient

func GenerateGradient(str, text string, width, height int) (string, error)

func GenerateSVG

func GenerateSVG(str, text string, width, height int) (string, error)

Types

type SVGData

type SVGData struct {
	Color1   string
	Color2   string
	Text     string
	Width    int
	Height   int
	FontSize float64
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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