svg

package
v0.0.0-...-5512165 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFontFamily  = "Mr+Dafoe"
	DefaultFontSize    = 400 // px
	DefaultText        = "FooBar"
	DefaultFill        = "#08d2a1"
	DefaultStroke      = "#088a6a"
	DefaultStrokeWidth = 32
)

Variables

This section is empty.

Functions

func Generate

func Generate(c *Config, w io.Writer)

Types

type Config

type Config struct {
	BackgroundColor string
	Fill            string
	FontFamily      string
	FontSize        int
	FontStyle       string
	Rotate          int
	Stroke          string
	StrokeWidth     int
	Text            string
}

func NewConfig

func NewConfig() *Config

func NewConfigFromMap

func NewConfigFromMap(params map[string]string) *Config

Jump to

Keyboard shortcuts

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