comics

package
v0.0.0-...-43822d8 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2018 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImgurUpload

func ImgurUpload(img []byte, clientID string) (string, error)

Types

type Bubble

type Bubble struct {
	PosX   float64 `json:"x"`
	PosY   float64 `json:"y"`
	Width  float64 `json:"width"`
	Height float64 `json:"height"`
}

type Template

type Template struct {
	Name     string    `json:"name"`
	Width    float64   `json:"width"`
	Height   float64   `json:"height"`
	Bubbles  []*Bubble `json:"bubbles"`
	ImageURL string    `json:"image_url"`
	// contains filtered or unexported fields
}

func NewTemplate

func NewTemplate(templateUrl string, fontPath string) (*Template, error)

func (*Template) Render

func (t *Template) Render(text []string) ([]byte, error)

func (*Template) String

func (t *Template) String() string

Jump to

Keyboard shortcuts

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