image

package
v0.0.0-...-a7d89b2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package image generates images containing a logo and some text below.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(p Params) (image.Image, error)

Generate generates a new image given the corresponding parameters.

Types

type Params

type Params struct {
	Text       string      // Text to display below the logo.
	Font       string      // Filepath to the TrueType font used for the text.
	Foreground color.Color // Color for the text.
	Background color.Color // Color for the background.
	Width      int         // Width of the image in pixels.
	Height     int         // Height of the image in pixels.
}

Params contains the parameters that describe an image. They are all required for image creation.

Jump to

Keyboard shortcuts

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