Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixel-search-zh:用中文搜 140 万张免费像素图

给 AI 装上这个 skill,说一句「给我的地牢小游戏配一套道具和小怪」,它就从本地 140 万张 16×16 像素图里挑出来,导出放大的透明底 PNG,或者一行一种拼成一张道具图。

示例:剑、盾牌、血瓶、钥匙、宝箱、史莱姆、蝙蝠、骷髅兵,每种 8 个

  • 图能商用:图库是 Pixel Art Atlas 1.4M,1,409,404 张、6194 个类别,CC0(不用署名)。
  • 按意思搜,中文能用:搜索用的是 Pixel Search 的查词表,我们加了 13000 多个中文叫法。「红色的龙」「血瓶」「骷髅兵」都行,也能中英混写。
  • 不联网、不装依赖:只要 Node 22.6 以上。数据跟仓库一起下来(约 188MB),一次搜索加导出不到 1 秒。

安装

Claude Code:

git clone --depth 1 https://github.com/nativejie/pixel-search-zh ~/.claude/skills/pixel-search-zh

别的支持 skill 的 AI 工具,把整个文件夹放进它的 skills 目录就行(同一个 SKILL.md)。目前只在 Claude Code 里实测过。

装好以后直接跟 AI 说要什么图。

自己在命令行用

cd ~/.claude/skills/pixel-search-zh
node scripts/pixel.ts search "红色的龙" --n 24          # 搜一种,出 sheet.png
node scripts/pixel.ts kit "剑,盾牌,血瓶,钥匙" --each 6   # 一套道具,一行一种,出 kit.png
node scripts/pixel.ts pick "1240488,1090627" --cols 8    # 按编号拼最终那张,出 pick.png

常用参数:--scale 8(放大倍数,像素不糊)、--bg "#ffffff"(透明底填色)、--out 目录。每次都会写一份 result.json,里面有每张图的编号和英文说明,还有中文被换成了什么英文。

要知道的

  • 图是 AI 生成的(Krea 2 Turbo + 像素风 LoRA),英文说明也没人工核过。商用前自己过一眼。
  • 图库偏西式游戏素材。中国特有的东西有的有(饺子、灯笼、月饼、鞭炮),有的没有(粽子 0 张;「红包」出来的是西式信封)。
  • 每张只有 16×16,适合道具、图标、小怪、地图块,不适合大立绘。
  • 数据缺了或者想从别处下,看 SKILL.md「数据」一节。

许可

  • 本仓库新写的代码(scripts/pixel.ts、scripts/fetch-data.ts)和中文词表 assets/zh.json:MIT,见 LICENSE。
  • scripts/engine.ts 和 data/ 来自 Pixel Search 和 Pixel Art Atlas,CC0;查词向量来自 MIT / Apache-2.0 的开源模型。详见 NOTICE.md 和 data/NOTICE-upstream.md。

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages