mcpField
S
seamless-pattern-generation

seamless-pattern-generation

github.com/eachlabs创意与媒体44215 次安装今天更新
代码仓库

关于 seamless-pattern-generation

seamless-pattern-generation 使用 each::sense 生成可平铺的图案,面向纺织、室内设计、包装和表面设计等用途。它涵盖花卉、几何、抽象及材质纹理,并支持迭代和系列图案制作。

主要功能

  1. 01生成可无缝平铺的图案
  2. 02支持花卉、几何与抽象风格
  3. 03制作纺织、墙纸和包装图案
  4. 04生成材质纹理与品牌图案
  5. 05迭代设计并制作图案系列

适用场景

  1. 01为布料印花设计重复图案
  2. 02制作室内墙纸图案
  3. 03生成礼品包装或品牌图案

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/eachlabs/skills --skill seamless-pattern-generation

安装后在 Claude Code 中输入/seamless-pattern-generation确认已加载。

附带文件references/SSE-EVENTS.md

详细介绍

无缝图案生成

使用 each::sense 生成专业品质、可平铺的无缝图案。这项技能可创建完美重复平铺的图案,适用于纺织品、墙纸、包装、数字背景和表面设计等应用。

功能

  • 花卉图案:包含花朵、叶片和有机元素的植物设计
  • 几何图案:数学形状、镶嵌图案和结构化设计
  • 抽象图案:艺术化、非具象的重复设计
  • 纺织品/面料图案:适用于服装和室内装潢的时尚印花
  • 墙纸图案:用于墙面和表面的室内设计图案
  • 礼品包装图案:喜庆、装饰性的包装纸设计
  • 迷彩图案:军事、狩猎和时尚迷彩设计
  • 纹理图案:大理石、石材、木材和材料纹理
  • 品牌图案:融入品牌元素和色彩的定制图案

快速入门

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless floral pattern with pink roses and green leaves on a cream background, suitable for fabric printing"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

图案类型与使用场景

图案类型常见用途主要特点
花卉纺织品、墙纸、文具有机、植物风格、自然流动感
几何现代室内设计、科技品牌塑造精确、数学化、结构清晰
抽象艺术印刷品、时尚、包装艺术化、独特、富有表现力
纺织品时尚、室内装潢、床上用品可用于生产、适合重复平铺
墙纸室内设计、数字背景大尺寸、适合室内空间
礼品包装包装、节日、庆典喜庆、色彩丰富、装饰性强
迷彩军事、狩猎、街头服饰有机形状、战术色彩
纹理表面设计、3D 材质逼真、基于材质

使用场景示例

1. 花卉无缝图案
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless tileable floral pattern featuring delicate watercolor roses, peonies, and eucalyptus leaves. Soft pink, blush, and sage green color palette on an off-white background. Romantic cottage core aesthetic, suitable for fabric printing and textile design."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
2. 几何图案
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless geometric pattern with interlocking hexagons and triangles. Modern minimalist style with navy blue, gold, and white colors. Art deco influence, clean lines, perfect for luxury packaging or interior wallpaper. Must tile seamlessly."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
3. 抽象图案
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless abstract pattern with fluid organic shapes and bold brush strokes. Vibrant coral, teal, and mustard yellow on a dark charcoal background. Contemporary artistic style inspired by mid-century modern art. Tileable for fashion prints."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
4. 面料/纺织品图案
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless textile pattern for summer dress fabric. Tropical design with palm leaves, monstera, and hibiscus flowers. Fresh green, coral pink, and cream colors on white. Playful yet sophisticated, ready for fabric repeat printing."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
5. 墙纸图案
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless wallpaper pattern with elegant chinoiserie style. Featuring birds, flowering branches, and butterflies. Soft blue and white porcelain color scheme with subtle gold accents. Classic, timeless interior design aesthetic. Must tile perfectly for wall application."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
6. 礼品包装图案
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless gift wrap pattern for birthday celebrations. Colorful confetti, balloons, streamers, and party hats scattered playfully. Bright rainbow colors including pink, blue, yellow, and green on a light lavender background. Fun and festive, perfect for wrapping paper."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
7. 迷彩图案
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless woodland camouflage pattern with organic irregular shapes. Traditional military camo colors: olive green, brown, tan, and black. Realistic forest environment camouflage suitable for hunting gear or outdoor apparel. Must tile seamlessly."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
8. 大理石/石材纹理图案
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless marble texture pattern resembling Italian Calacatta marble. White base with elegant grey and gold veining. Luxurious, high-end aesthetic suitable for interior design, countertops visualization, or luxury packaging. Realistic stone texture that tiles without visible seams."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
9. 数码迷彩图案
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless digital camouflage pattern with pixelated rectangular shapes. Urban style with grey, black, white, and dark blue colors. Modern tactical military aesthetic, similar to MARPAT or UCP patterns. Clean digital pixels, perfect for gaming, streetwear, or tech accessories."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'
10. 定制品牌图案
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless branded pattern for a coffee shop. Feature small coffee cups, coffee beans, croissants, and steam swirls as repeating elements. Warm brown, cream, and copper color palette. Vintage artisanal cafe aesthetic, suitable for packaging, menus, and store decor. Tileable pattern."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max"
  }'

最佳实践

创建无缝图案
  • 指定可平铺/无缝:务必说明图案应能无缝平铺
  • 定义尺寸:说明需要小尺寸、中等尺寸还是大尺寸图案
  • 配色方案:明确指定颜色,以保持品牌一致性
  • 使用场景背景:说明预期用途(面料、墙纸、数字用途)
图案设计技巧
  • 平衡:确保图案中的元素分布均匀
  • 对比度:加入足够的对比度,提升视觉趣味
  • 方向性:说明图案是否应具有方向性
  • 疏密度:说明希望图案元素排列得多密或多疏
技术注意事项
  • 分辨率:用于印刷时应采用更高分辨率
  • 色彩模式:说明印刷是否需要适用于 CMYK 的颜色
  • 重复类型:说明需要半落位、砖式还是直排重复

图案生成提示词技巧

创建无缝图案时,请在提示词中包含以下详细信息:

  1. 图案类型:花卉、几何、抽象等
  2. 设计元素:要包含的特定图案元素和形状
  3. 配色方案:具体颜色或色彩氛围
  4. 风格/美学:现代、复古、极简、繁复
  5. 尺寸:小、中或大尺寸重复
  6. 使用场景:图案的用途
  7. 无缝要求:务必说明可平铺/无缝
示例提示词结构
"Create a seamless [pattern type] pattern featuring [design elements].
[Color palette] on a [background color] background.
[Style/aesthetic] style, suitable for [use case].
Must tile perfectly/seamlessly."

模式选择

生成前先询问用户:

“您想要快速且经济,还是高质量?”

模式适用场景速度质量
max最终生产图案、交付客户的成品较慢最高
eco快速草稿、概念探索、快速迭代较快良好

多轮图案迭代

使用 session_id 迭代图案设计:

# Initial pattern
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless botanical pattern with ferns and monstera leaves, green tones on white"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "pattern-project-001"
  }'

# Iterate based on feedback
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Make the leaves larger and add some small berries in coral color"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "pattern-project-001"
  }'

# Request color variation
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a variation with a dark navy background instead of white"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "pattern-project-001"
  }'

图案集合生成

为一组图案生成相互协调的图案:

# Main pattern
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a seamless floral pattern with large roses in dusty pink and sage green, vintage style"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "collection-vintage-florals",
    "mode": "max"
  }'

# Coordinating geometric
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a coordinating seamless stripe pattern using the same dusty pink and sage green colors, simple elegant stripes"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "collection-vintage-florals",
    "mode": "max"
  }'

# Coordinating small-scale
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a small-scale seamless polka dot pattern in the same color palette for a blender pattern"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "collection-vintage-florals",
    "mode": "max"
  }'

错误处理

错误原因解决方案
Failed to create prediction: HTTP 422余额不足在 eachlabs.ai 充值
内容政策违规内容被禁止调整提示词以遵守内容政策
超时生成内容复杂将客户端超时时间设为至少 10 分钟

相关技能

  • each-sense - 核心 API 文档
  • product-photo-generation - 电商产品照片
  • texture-generation - 3D 材质纹理

评论

支持 Markdown