config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BaseImgPath is base image path.
	BaseImgPath = "/base.png"
)

Functions

This section is empty.

Types

type Text

type Text struct {
	Size          float64
	Color         color.RGBA
	PosHorizontal int
	PosVertical   int
}

Text configs in image.

var (
	// Title is github repo name.
	Title Text
	// FirstDescription is github repo description in First line.
	FirstDescription Text
	// SecondDescription is github repo description in First line.
	SecondDescription Text
	// Star is github repo star.
	Star Text
	// Fork is github repo fork.
	Fork Text
	// Font is common font.
	Font *truetype.Font
)

func (*Text) AdjustTitleFontSize

func (t *Text) AdjustTitleFontSize(text string)

AdjustFontSize adjust font size

Jump to

Keyboard shortcuts

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