wordcloud.random_color_func

wordcloud.random_color_func(word=None, font_size=None, position=None, orientation=None, font_path=None, random_state=None)[source]

Random hue color generation.

Default coloring method. This just picks a random hue with value 80% and lumination 50%.

Parameters
word, font_size, position, orientationignored.
random_staterandom.Random object or None, (default=None)

If a random object is given, this is used for generating random numbers.