pygame is
pygame.org is
|
colors
colors - 0.1jake b (ninmonkey)Tags:DescriptionSimple way to grab random colors using a filter string. Uses pygame.THECOLORS dict for colors.
You can call:
random_color('red')
To return a random 'red' color from several reds. See screenshot. ChangesCode has been uploaded: https://code.google.com/p/ninmonkey/source/browse/#hg%2Fcolors
run colorstest.py , press spacebar. Links
ScreenshotReleases
Pygame.org account CommentsIf you wish to leave a comment with your pygame.org account, please sign in first.
|
|