Created
March 12, 2014 04:32
-
-
Save norioxkimura/9500909 to your computer and use it in GitHub Desktop.
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
import colorsys | |
print "<style>" | |
for i in xrange(30): | |
h = 1.0 / 10 * (i % 10) | |
if i / 10 == 0: | |
s = 0.12 | |
v = 1.0 | |
elif i / 10 == 1: | |
s = 0.24 | |
v = 1.0 | |
else: | |
s = 0.12 | |
v = 0.8 | |
rgb = colorsys.hsv_to_rgb(h, s, v) | |
print ".debugFlowFilter%d { background-color: rgb(%g%%,%g%%,%g%%) }" % ( i, rgb[0] * 100, rgb[1] * 100, rgb[2] * 100 ) | |
print "</style>" | |
for i in xrange(30): | |
print """<div class="debugFlowFilter%d">Hoge</div>""" % ( i ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment