Skip to content

Instantly share code, notes, and snippets.

Created Aug 9, 2019
What would you like to do?
Convert pal to gpl palette
#! /usr/bin/env python3
input() #header
input() #version
cnt = int(input()) #number of colors
print("GIMP Palette")
print("Columns: {0}".format(cnt))
for i in range(cnt):
print("{0} {1} {2}\tUntitled".format(*(input().split())) + str(i + 1))
Copy link

Vftdan commented Sep 15, 2019

Usage: < file.pal > file.gpl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment