Versions in this module Expand all Collapse all v0 v0.0.1 Aug 2, 2021 Changes in this version + type Box struct + Bottom float64 + Left float64 + Right float64 + Top float64 + func Mask(path string, width int, height int, exclude color.RGBA) ([]*Box, error) + func (a *Box) String() string + type Option func(*Options) error + func BackgroundColor(color color.Color) Option + func Colors(colors []color.Color) Option + func Debug() Option + func Font(file io.Reader) Option + func FontMaxSize(max int) Option + func FontMinSize(min int) Option + func Height(h int) Option + func Logo(file io.Reader) Option + func MaskBoxes(mask []*Box) Option + func RandomPlacement(do bool) Option + func Width(w int) Option + type Options struct + BackgroundColor color.Color + Colors []color.Color + Debug bool + Font *truetype.Font + FontMaxSize int + FontMinSize int + Height int + Logo image.Image + Mask []*Box + RandomPlacement bool + Width int + type Wordcloud struct + func NewWordcloud(wordList map[string]int, options ...Option) (*Wordcloud, error) + func (w *Wordcloud) Draw() image.Image + func (w *Wordcloud) Place(wc wordCount) bool