import colorsys
print '''GIMP Palette
Name: Inkscape default
Columns: 3
# generated by PaletteGen.py'''
# grays
if i == 0:
elif i == g_steps:
else:
print line
# add three more steps near white
if i == g_steps - 1:
# standard HTML colors
print '''128 0 0 Maroon (#800000)
255 0 0 Red (#FF0000)
128 128 0 Olive (#808000)
255 255 0 Yellow (#FFFF00)
0 128 0 Green (#008000)
0 255 0 Lime (#00FF00)
0 128 128 Teal (#008080)
0 255 255 Aqua (#00FFFF)
0 0 128 Navy (#000080)
0 0 255 Blue (#0000FF)
128 0 128 Purple (#800080)
255 0 255 Fuchsia (#FF00FF)'''
# HSL palette
print line