extract_palette
Extract a representative color palette from an image as hex values. Optionally save a swatch PNG to unify multiple assets.
Instructions
이미지에서 대표 팔레트(헥스 리스트)를 추출 + 옵션 스와치 PNG 저장.
추출한 팔레트를 snap_to_palette 의 기준으로 삼아 여러 에셋을 통일할 수 있다.
Args: src: 입력 이미지 경로. colors: 추출할 색 수. swatch: 지정 시 팔레트 스와치 PNG 저장 경로.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| src | Yes | ||
| colors | No | ||
| swatch | No |