Documentation ¶
Index ¶
- Constants
- type Box
- type Option
- func BackgroundColor(color color.Color) Option
- func Colors(colors []color.Color) 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)
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.