A small python 3 program that correctly generates it as a GIMP Palette is:
Code: Select all
print("""GIMP Palette
Name: RGBI Arranged.
Columns: 16
#""")
for i in range(256):
print(((((i>>4)&0xc)+i)&0xf)*17, (i&0xf)*17, ((((i>>2)&0xc)+i)&0xf)*17)
Moderator: Moderators
Code: Select all
print("""GIMP Palette
Name: RGBI Arranged.
Columns: 16
#""")
for i in range(256):
print(((((i>>4)&0xc)+i)&0xf)*17, (i&0xf)*17, ((((i>>2)&0xc)+i)&0xf)*17)