For generating attractive random colors
Generating a completely random color:
import randomcolor rand_color = randomcolor.RandomColor() print(rand_color.generate())
Generating 3 random blue colors:
python setup.py test to run the test suite with stored expected colors
generated from a seeded randomcolor object.
python tests/test_randomcolor_visual.py to generate an html page with random
colors generated from using this package. Open
randomcolors.html to confirm
that the colors fall within the parameters pased in. This is in addition to unit
tests since it's much easier to visually confirm that the colors generated
are correct than determine correctness programatically.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for randomcolor-0.4.4.6-py3-none-any.whl