wordimg

package
v0.0.0-...-b95eb0d Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package wordimg implements generator to create an image from text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertColor

func ConvertColor(str string) (*color.RGBA, error)

ConvertColor convert color.RGBA from "R:G:B" string.

func NewGenerator

func NewGenerator(rand *rand.Rand, font []byte) *generator

NewGenerator create Generator.

Types

type Option

type Option func(*config)

func WithColor

func WithColor(col *color.RGBA) Option

WithColor set color

func WithFontSize

func WithFontSize(f int) Option

WithFontSize set font size.

func WithHeight

func WithHeight(w int) Option

WithHeight set height.

func WithWidth

func WithWidth(w int) Option

WithWidth set width.

Jump to

Keyboard shortcuts

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