d73ff9b0fb
Deploy Site / deploy-vercel (push) Has been cancelled
Deploy Site / deploy-docs (push) Has been cancelled
Docker / shell lint / Lint Dockerfile (hadolint) (push) Has been cancelled
Docker / shell lint / Lint docker/ shell scripts (shellcheck) (push) Has been cancelled
Docker Build and Publish / build-amd64 (push) Has been cancelled
Docker Build and Publish / build-arm64 (push) Has been cancelled
Lint (ruff + ty) / ruff + ty diff (push) Has been cancelled
Lint (ruff + ty) / ruff enforcement (blocking) (push) Has been cancelled
Lint (ruff + ty) / Windows footguns (blocking) (push) Has been cancelled
Nix Lockfile Fix / auto-fix-main (push) Has been cancelled
Nix Lockfile Fix / fix (push) Has been cancelled
Nix / nix (macos-latest) (push) Has been cancelled
Nix / nix (ubuntu-latest) (push) Has been cancelled
OSV-Scanner / Scan lockfiles (push) Has been cancelled
Build Skills Index / build-index (push) Has been cancelled
Tests / test (1) (push) Has been cancelled
Tests / test (2) (push) Has been cancelled
Tests / test (3) (push) Has been cancelled
Tests / test (4) (push) Has been cancelled
Tests / test (5) (push) Has been cancelled
Tests / test (6) (push) Has been cancelled
Tests / e2e (push) Has been cancelled
uv.lock check / uv lock --check (push) Has been cancelled
Docker Build and Publish / merge (push) Has been cancelled
Build Skills Index / trigger-deploy (push) Has been cancelled
Tests / save-durations (push) Has been cancelled
50 lines
1.7 KiB
Markdown
50 lines
1.7 KiB
Markdown
# Named Palettes
|
|
|
|
28 hardware-accurate and artistic palettes available to `pixel_art()`.
|
|
Palette values are sourced from `pixel-art-studio` (MIT) — see ATTRIBUTION.md in the skill root.
|
|
|
|
Usage: pass the palette name as `palette=` or let a preset select it.
|
|
|
|
```python
|
|
pixel_art("in.png", "out.png", preset="nes") # preset selects NES
|
|
pixel_art("in.png", "out.png", preset="custom", palette="PICO_8", block=6)
|
|
```
|
|
|
|
## Hardware Palettes
|
|
|
|
| Name | Colors | Source |
|
|
|------|--------|--------|
|
|
| `NES` | 54 | Nintendo NES |
|
|
| `C64` | 16 | Commodore 64 |
|
|
| `COMMODORE_64` | 16 | Commodore 64 (alt) |
|
|
| `ZX_SPECTRUM` | 8 | Sinclair ZX Spectrum |
|
|
| `APPLE_II_LO` | 16 | Apple II lo-res |
|
|
| `APPLE_II_HI` | 6 | Apple II hi-res |
|
|
| `GAMEBOY_ORIGINAL` | 4 | Game Boy DMG (green) |
|
|
| `GAMEBOY_POCKET` | 4 | Game Boy Pocket (grey) |
|
|
| `GAMEBOY_VIRTUALBOY` | 4 | Virtual Boy (red) |
|
|
| `PICO_8` | 16 | PICO-8 fantasy console |
|
|
| `TELETEXT` | 8 | BBC Teletext |
|
|
| `CGA_MODE4_PAL1` | 4 | IBM CGA |
|
|
| `MSX` | 15 | MSX |
|
|
| `MICROSOFT_WINDOWS_16` | 16 | Windows 3.x default |
|
|
| `MICROSOFT_WINDOWS_PAINT` | 24 | MS Paint classic |
|
|
| `MONO_BW` | 2 | Black and white |
|
|
| `MONO_AMBER` | 2 | Amber monochrome |
|
|
| `MONO_GREEN` | 2 | Green monochrome |
|
|
|
|
## Artistic Palettes
|
|
|
|
| Name | Colors | Feel |
|
|
|------|--------|------|
|
|
| `PASTEL_DREAM` | 10 | Soft pastels |
|
|
| `NEON_CYBER` | 10 | Cyberpunk neon |
|
|
| `RETRO_WARM` | 10 | Warm 70s |
|
|
| `OCEAN_DEEP` | 10 | Blue gradient |
|
|
| `FOREST_MOSS` | 10 | Green naturals |
|
|
| `SUNSET_FIRE` | 10 | Red to yellow |
|
|
| `ARCTIC_ICE` | 10 | Cool blues and whites |
|
|
| `VINTAGE_ROSE` | 10 | Rose mauves |
|
|
| `EARTH_CLAY` | 10 | Terracotta browns |
|
|
| `ELECTRIC_VIOLET` | 10 | Violet gradient |
|