🎨 基础绘图工具 - 15个核心MCP绘图工具
Project description
🎨 GamePainter - 基础绘图工具
提供 15 个核心绘图工具,通过组合可绘制任意复杂图形!
✨ 特性
- 🎨 15 个核心工具 - 精简设计,功能完整
- 🔧 MCP 工具集成 - 可被 AI 助手直接调用
- 📐 灵活组合 - 基础图形组合成复杂图案
- 🖼️ 图片处理 - 裁切、缩放、扩充等
- 🚀 开箱即用 - 无需复杂配置
🚀 快速开始
安装
从 PyPI 安装(推荐):
# 基础安装(15个核心绘图工具)
pip install game-painter
或从源码安装:
# 克隆项目
git clone https://github.com/dzqdzq/game-painter.git
cd game-painter
# 创建虚拟环境并安装依赖
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# 基础安装
pip install -e .
🔌 MCP 工具配置
安装完成后,在 Cursor 或 Claude Desktop 中配置 MCP 服务器。
Cursor 配置
打开 Cursor Settings,找到 MCP 设置,添加配置:
{
"mcpServers": {
"game-painter": {
"command": "uvx",
"args": ["game-painter"]
}
}
}
🛠️ 工具列表 (15 个)
画布管理
| 工具 | 说明 |
|---|---|
create_canvas |
创建画布(第一步) |
save |
保存画布为图片 |
线条类
| 工具 | 说明 |
|---|---|
line |
直线/虚线 |
polyline |
折线/多段线 |
arc |
弧线 |
bezier |
贝塞尔曲线 |
wave |
波浪线 |
形状类
| 工具 | 说明 |
|---|---|
rect |
矩形/圆角矩形 |
ellipse |
椭圆/正圆 |
polygon |
多边形(三角形、六边形等) |
图标类
| 工具 | 说明 |
|---|---|
icon |
五角星、箭头 |
辅助类
| 工具 | 说明 |
|---|---|
text |
文字 |
图片处理类
| 工具 | 说明 |
|---|---|
resize_image |
缩放图片 |
auto_crop_transparent |
自动裁切透明区域(PNG) |
crop_region |
扩充透明区域到指定大小 |
📄 License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
game_painter-2.2.7.tar.gz
(13.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file game_painter-2.2.7.tar.gz.
File metadata
- Download URL: game_painter-2.2.7.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a7aae696989e14f6f31410e5dd18213d68cd11cb33664897d7dda825e9eda07
|
|
| MD5 |
c20a5cb2e916ffaa7bf70066044b2795
|
|
| BLAKE2b-256 |
80596815937dd7923794c3b072c3b42ae530d74416e0c460f6f8e3ab0a973be8
|
File details
Details for the file game_painter-2.2.7-py3-none-any.whl.
File metadata
- Download URL: game_painter-2.2.7-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d63b4053727947a426d93fd43adce85c182d8f323d972b01b3dbad19446e8aba
|
|
| MD5 |
cc66dca379050126ab0e5e035c2c9c1d
|
|
| BLAKE2b-256 |
da1045f4632289c174b3476b5fa8390bc81b728d8dc852b893a71c4bfc005733
|