阿里斯像素艺术
- 作者仓库星标 961
- 许可证 MIT
- 作者仓库 dr-claw
- 领域
- 设计与多媒体
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @OpenLAIR · MIT
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
第 1 步:了解请求
要画什么人物/物体?这是什么场景? (对话、肖像、小组、图表)要搭配什么颜色/品牌?什么尺寸? (紧凑的徽章,宽的自述文件英雄)
第 2 步:生成 SVG
写入临时文件或项目目录 使用 `open <file.svg>` 打开进行预览 保持 viewBox 紧密 — 测量实际内容边界
第 3 步:与用户迭代
用户提供屏幕截图反馈 常见修复:重叠、箭头方向、间距、大小 使用 `Edit` 进行小调整,使用 `Write` 进行重大重新设计 典型:2-4 次迭代才能正确
第 4 步:完成
确保 SVG 中没有个人信息 清理:删除未使用的定义,收紧 viewBox 建议添加到 README:`Alt text`
# Pixel Art SVG Generator
Create a pixel art SVG illustration: $ARGUMENTS
## Design Principles
### Pixel Grid
- Each "pixel" is a `<rect>` with width/height of 7px
- Grid spacing: 7px (no gaps between pixels)
- Characters are typically 8-10 pixels wide, 8-12 pixels tall
- Use `<g transform="translate(x,y)">` to position and reuse character groups
### Color Palette
Keep it simple — 3-5 colors per character:
- **Skin**: `#FFDAB9` (light), `#E8967A` / `#D4956A` (blush/shadow)
- **Eyes**: `#333`
- **Hair**: `#8B5E3C` (brown), `#2C2C2C` (black), `#FFD700` (blonde), `#C0392B` (red)
- **Clothes**: use project's brand color (e.g. `#4A9EDA` for blue, `#74AA63` for green)
- **Shoes/pants**: `#444`
- **Accessories**: `#555` (glasses frames), `#FFD700` (crown)
### Character Template (7px grid)
```
Row 0 (hair top): 4 pixels centered
Row 1 (hair): 6 pixels wide
Row 2 (face top): 6 pixels — all skin
Row 3 (eyes): 6 pixels — skin, eye, skin, skin, eye, skin
Row 4 (mouth): 6 pixels — skin, skin, mouth, mouth, skin, skin
Row 5 (body top): 8 pixels — hand, 6 shirt, hand
Row 6 (body): 6 pixels — all shirt
Row 7 (legs): 2+2 pixels — with gap in middle
```
### Scene Composition
#### Chat Dialogue Layout (like our hero image)
- Two characters on left/right sides, vertically centered
- Chat bubbles between them, alternating left/right
- Bubble tails point toward the speaking character
- Arrows between bubbles show direction of communication
- Use `orient="auto"` markers for arrow heads
- Bottom: tagline or decoration
#### Single Character with Label
- Character centered
- Label text below
- Optional: speech bubble above
#### Group Scene
- Characters spaced evenly
- Optional: ground line, background elements
- Keep viewBox tight — no wasted space
### SVG Structure
```xml
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 W H" font-family="monospace">
<defs>
<!-- Arrow markers if needed -->
</defs>
<rect width="W" height="H" fill="#fafbfc" rx="12"/> <!-- Background -->
<!-- Characters via <g transform="translate(...)"> -->
<!-- Dialogue bubbles: <rect> + <polygon> tail + <text> -->
<!-- Arrows: <line> with marker-end -->
<!-- Labels: <text> with text-anchor="middle" -->
</svg>
```
### Chat Bubble Recipe
```xml
<!-- Blue bubble (left character speaks) -->
<rect x="110" y="29" width="280" height="26" fill="#e8f4fd" stroke="#4a9eda" stroke-width="1.5" rx="8"/>
<!-- Tail pointing left toward character -->
<polygon points="108,41 99,47 108,46" fill="#e8f4fd" stroke="#4a9eda" stroke-width="1.5"/>
<rect x="107" y="40" width="3" height="7" fill="#e8f4fd"/> <!-- covers stroke at junction -->
<text x="123" y="46" font-size="13px">📄 Message here</text>
<!-- Orange bubble (right character responds) -->
<rect x="490" y="71" width="280" height="26" fill="#fdf2e8" stroke="#da8a4a" stroke-width="1.5" rx="8"/>
<!-- Tail pointing right toward character -->
<polygon points="772,83 781,89 772,88" fill="#fdf2e8" stroke="#da8a4a" stroke-width="1.5"/>
<rect x="770" y="82" width="3" height="7" fill="#fdf2e8"/>
<text x="503" y="88" font-size="13px">🤔 Response here</text>
```
### Arrow Recipe
```xml
<defs>
<marker id="ar" markerWidth="8" markerHeight="6" refX="8" refY="3" orient="auto">
<polygon points="0 0, 8 3, 0 6" fill="#4a9eda"/>
</marker>
</defs>
<!-- Right arrow (→): x1 < x2 -->
<line x1="392" y1="42" x2="465" y2="42" stroke="#4a9eda" stroke-width="2" marker-end="url(#ar)"/>
<!-- Left arrow (←): x1 > x2 -->
<line x1="488" y1="84" x2="420" y2="84" stroke="#da8a4a" stroke-width="2" marker-end="url(#ar-o)"/>
```
## Workflow
### Step 1: Understand the Request
- What characters/objects to draw?
- What's the scene? (dialogue, portrait, group, diagram)
- What colors/brand to match?
- What size? (compact for badge, wide for README hero)
### Step 2: Generate SVG
- Write to a temp file or project directory
- Open with `open <file.svg>` for preview
- Keep viewBox tight — measure actual content bounds
### Step 3: Iterate with User
- User provides feedback on screenshot
- Common fixes: overlap, arrow direction, spacing, sizing
- Use `Edit` for small tweaks, `Write` for major redesigns
- Typical: 2-4 iterations to get it right
### Step 4: Finalize
- Ensure no personal info in the SVG
- Clean up: remove unused defs, tighten viewBox
- Suggest adding to README: ``
## Common Pitfalls
- **Arrow direction**: `orient="auto"` follows line direction. Line going right→left = arrowhead points left
- **Bubble overlap**: keep 38-44px vertical spacing between rows
- **Text overflow**: monospace 13px ≈ 7.8px/char, emoji ≈ 14px. Measure before setting bubble width
- **Character overlap with bubbles**: keep character x-zone and bubble x-zone separated by ≥10px
- **viewBox too large**: match viewBox to actual content, add ~10px padding
- **Tail stroke artifact**: always add a small `<rect>` at the bubble-tail junction to cover the stroke line
章节与文件索引
按说明文件中的顺序排列。
像素网格
调色板
场景构图
第 1 步:了解请求
第 2 步:生成 SVG
文件/命令 -> <rect> · <g transform="translate(x,y)"> · #FFDAB9 · #E8967A · #D4956A · #333 · #8B5E3C · #2C2C2C
内容校验值 -> 8758b99de0a8
当前原文的自动摘译,尚未人工审校。
像素网格
每个“像素”都是宽度/高度为 7px 的
<rect>网格间距:7px(像素之间没有间隙) 字符通常为 8-10 像素宽,8-12 像素高 使用<g transform="translate(x,y)">定位和重用字符组调色板
保持简单 - 每个角色 3-5 种颜色: 皮肤:
#FFDAB9(浅色)、#E8967A/#D4956A(腮红/阴影) 眼睛:#333头发:#8B5E3C(棕色)、#2C2C2C(黑色)、#FFD700(金发)、#C0392B(红色)衣服:使用项目的品牌颜色(例如#4A9EDA代表蓝色,#74AA63代表绿色)场景构图
聊天对话布局(如我们的英雄图像) 左右两侧有两个角色,垂直居中 他们之间的聊天气泡,左/右交替 气泡尾部指向说话的角色 气泡之间的箭头显示通信方向