Skip to content

Instantly share code, notes, and snippets.

View ToolmanP's full-sized avatar
Lost Umbrella

Yiyang Wu ToolmanP

Lost Umbrella
View GitHub Profile
@ToolmanP
ToolmanP / clr2gpl.py
Created April 21, 2026 08:10
Script to convert Apple color map file (.clr) into GIMP color pallete (.gpl)
#!/usr/bin/env python3
"""Convert Apple .clr files to GIMP/Inkscape .gpl palette format"""
import sys
import plistlib
from pathlib import Path
def parse_ns_components(data):
"""Parse NSComponents byte string like b'0.5 0.2 0.8 1'"""