tile

package
v0.0.0-...-bab6c82 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Maker

func Maker(tilesURL, outputDir, fontsDir string) (*tileMaker, error)

Maker initializes a new tile maker.

Types

type Spec

type Spec struct {
	Text            string
	BackgroundImage string // overrides BackgroundColor if set
	BackgroundColor color.Color
	TextColor       color.Color
	OverlayColor    color.Color
}

Spec is a specification for an image tile.

func (Spec) ID

func (s Spec) ID() string

ID returns a unique identifier for the spec.

Jump to

Keyboard shortcuts

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