CLI tool that downloads a Lospec palette and generates a PNG grid.
Lospec palettes are distributed as single-row strips, which can be awkward to work with in practice. If you’ve ever had to manually rearrange a palette into a grid just to use it in Blender, Photoshop, or a pixel art tool, you know the friction.
This CLI removes that step by converting palettes into clean, ready-to-use PNG grids.
npm install -g @fapoli/lospec-clinpx @fapoli/lospec-cliRun the CLI:
lospecYou will be prompted for:
- Palette name (from Lospec)
- Number of columns
- Cell size
The tool will then generate a PNG file named:
<palette>.png
lospecInput:
Palette name: comfy57
Columns: 8
Cell size: 32
Output:
comfy57.png
- Fetches palettes directly from Lospec
- Generates clean PNG grids
- Simple interactive CLI
Clone the repo:
git clone https://github.com/fapoli/lospec-cli.git
cd lospec-cli
npm installTest locally:
npm link
lospecMIT