Skip to content

Instantly share code, notes, and snippets.

@norioxkimura
Created March 12, 2014 04:32
Show Gist options
  • Save norioxkimura/9500909 to your computer and use it in GitHub Desktop.
Save norioxkimura/9500909 to your computer and use it in GitHub Desktop.
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