Last active
December 15, 2015 03:08
-
-
Save ThatDevopsGuy/5191740 to your computer and use it in GitHub Desktop.
Quick-and-Easy Colorization Snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i, highlightable_item in enumerate(highlightable_items): | |
hue = (360 / len(highlightable_items)) * i | |
yield '<span style="color: hsl(%s,50%%, 50%%);">%s</span>' % (hue, highlightable_item) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment