Versions in this module Expand all Collapse all v1 v1.1.1 Feb 11, 2021 Changes in this version + func ConvertColor(str string) (*color.RGBA, error) + type Generator struct + func NewGenerator(rand *rand.Rand, font []byte) *Generator + func (g *Generator) GenerateImage(w io.Writer, message string, op ...Option) error + type Option func(*config) + func WithAlignCenter() Option + func WithColor(col *color.RGBA) Option + func WithFontSize(f int) Option + func WithHeight(w int) Option + func WithJustLine(l int) Option + func WithWidth(w int) Option