Documentation
¶
Index ¶
- Constants
- type Box
- type Option
- func BackgroundColor(color color.Color) Option
- func Colors(colors []color.Color) Option
- func CopyrightFontSize(size int) Option
- func CopyrightString(s string) Option
- func Debug() Option
- func FontFile(path string) Option
- func FontMaxSize(max int) Option
- func FontMinSize(min int) Option
- func Height(h int) Option
- func MaskBoxes(mask []*Box) Option
- func RandomPlacement(do bool) Option
- func Width(w int) Option
- func WordSizeFunction(f string) Option
- type Options
- type Wordcloud
Constants ¶
View Source
const ( SizeFunctionLinear = "linear" SizeFunctionSqrt = "sqrt" SizeFunctionSqrtInverse = "sqrtinverse" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Box ¶
type Option ¶
type Option func(*Options)
func CopyrightFontSize ¶
Show a CopyrightString on the bottom right
func CopyrightString ¶
Show a CopyrightString on the bottom right
type Wordcloud ¶
type Wordcloud struct {
// contains filtered or unexported fields
}
Wordcloud object. Create one with NewWordcloud and use Draw() to get the image
func NewWordcloud ¶
Initialize a wordcloud based on a map of word frequency.
func (*Wordcloud) Draw ¶
Draw tries to place words one by one, starting with the ones with the highest counts
func (*Wordcloud) PlaceCopyright ¶
func (w *Wordcloud) PlaceCopyright()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.