算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
ornament-style-color【设计与创意】Design polychromatic ornamental patterns grounded in Alexander Speltz's classical ornament taxonomy. Builds on monochrome structural analysis by adding period-authentic color palettes, color-to-motif mapping, and rendering styles suited to painted, illuminated, and glazed ornament. Use when creating decorative designs where color is integral to the t…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Polychromatic ornament: art-history color knowledge + AI image gen. Builds on ornament-style-mono w/ period-authentic palettes, harmony, rendering for painted/illuminated/glazed.
Each period's palette = pigments avail + culture + material.
Historical Ornament Periods with Characteristic Palettes:
┌───────────────────┬─────────────────┬────────────────────────────────────────────────────────┐
│ Period │ Date Range │ Characteristic Palette │
├───────────────────┼─────────────────┼────────────────────────────────────────────────────────┤
│ Egyptian │ 3100–332 BCE │ Lapis blue, gold/ochre, terracotta red, black, white │
│ │ │ Mineral pigments: flat, unmodulated, high contrast │
├───────────────────┼─────────────────┼────────────────────────────────────────────────────────┤
│ Greek │ 800–31 BCE │ Terracotta red, black, ochre, white, blue (rare) │
│ │ │ Pottery palette; architectural color largely lost │
├───────────────────┼─────────────────┼────────────────────────────────────────────────────────┤
│ Roman │ 509 BCE–476 CE │ Pompeii red, ochre yellow, black, white, verdigris │
│ │ │ Fresco palette: warm earth tones, strong red dominant │
├───────────────────┼─────────────────┼────────────────────────────────────────────────────────┤
│ Byzantine │ 330–1453 CE │ Gold (dominant), deep blue, crimson, purple, white │
│ │ │ Mosaic tesserae: jewel tones, gold ground, luminous │
├───────────────────┼─────────────────┼────────────────────────────────────────────────────────┤
│ Islamic │ 7th–17th c. │ Turquoise/cobalt blue, white, gold, emerald green │
│ │ │ Tile glazes: luminous, saturated, geometric precision │
├───────────────────┼─────────────────┼────────────────────────────────────────────────────────┤
│ Romanesque │ 1000–1200 CE │ Ochre, rust red, deep green, dark blue, cream │
│ │ │ Manuscript and stone: earthy, muted, mineral-derived │
├───────────────────┼─────────────────┼────────────────────────────────────────────────────────┤
│ Gothic │ 1150–1500 CE │ Ultramarine blue, ruby red, emerald green, gold, white │
│ │ │ Stained glass + illumination: saturated, luminous │
├───────────────────┼─────────────────┼────────────────────────────────────────────────────────┤
│ Renaissance │ 1400–1600 CE │ Rich earth tones, azure blue, gold leaf, warm greens │
│ │ │ Oil and fresco: naturalistic, modulated, subtle │
├───────────────────┼─────────────────┼────────────────────────────────────────────────────────┤
│ Baroque/Rococo │ 1600–1780 CE │ Pastel pink, powder blue, cream, gold, soft green │
│ │ │ (Rococo) vs deep burgundy, gold, forest green (Baroque) │
├───────────────────┼─────────────────┼────────────────────────────────────────────────────────┤
│ Art Nouveau │ 1890–1910 CE │ Sage green, dusty rose, amber/gold, muted purple, │
│ │ │ teal. Organic, muted, nature-derived palette │
└───────────────────┴─────────────────┴────────────────────────────────────────────────────────┘
→ Period IDed w/ palette + material context.
If err: period not in table → WebSearch "[period] ornament color palette pigments", construct entry. Pigment avail = reliable guide.
Translate to specific 3-5 color set w/ roles.
Color Role Framework:
Color Distribution (60/30/10 Rule):
┌──────────────┬────────────┬──────────────────────────────────────────┐
│ Role │ Proportion │ Function │
├──────────────┼────────────┼──────────────────────────────────────────┤
│ Dominant │ ~60% │ Ground color or primary structural color │
│ Secondary │ ~30% │ Motif fill or supporting structural color │
│ Accent │ ~10% │ Highlights, details, focal points │
│ (Optional) │ — │ Additional accent or metallic (gold) │
│ (Optional) │ — │ Background / ground if different from │
│ │ │ dominant │
└──────────────┴────────────┴──────────────────────────────────────────┘
Harmony Approaches:
Example Palettes:
→ 3-5 named colors w/ roles, proportions, harmony, mood.
If err: arbitrary feel → anchor to material context. Ask "what pigments avail?" + "ground material?" (gold leaf on vellum, glaze on ceramic, paint on plaster). Material constrains + authenticates.
Same as ornament-style-mono Step 2, plus color-to-structure mapping.
Structural analysis (mono Step 2):
Color-to-structure mapping:
Example:
Islamic Star Pattern:
- Star forms: turquoise (dominant)
- Interlocking geometric ground: white (secondary)
- Star center details: cobalt blue (accent)
- Outline/border: gold (detail)
→ Color follows form strictly — each geometric shape is one flat color
→ Structural desc w/ explicit color assignments per element.
If err: mapping unclear → study examples via WebSearch "[period] [motif] ornament color". Historical color clarifies structure, doesn't obscure.
Build Z-Image prompt w/ palette + style.
Template:
[Rendering style] of [motif name] ornament in the [period] style,
[composition type], [color palette description],
[color mood], [structural details from Step 3],
[application context], [additional qualifiers]
Color-Appropriate Rendering Styles:
painted ornament — brushwork, opaque, fresco/oil qualityilluminated manuscript — gold leaf, jewel tones, vellumglazed ceramic tile — glossy, flat color, precise edgesstained glass — translucent, dark leadingwatercolor illustration — transparent washes, soft, paper visibleenamel on metal — hard glossy, metallic groundmosaic — small tesserae, visible gaps, luminousprinted poster — flat areas, Art Nouveau / Arts & CraftsColor Description:
Example Prompts:
glazed ceramic tile ornament in the Islamic style, geometric star pattern, turquoise blue and white with cobalt blue accents and gold outlines, vivid saturated colors, repeating tessellation, Iznik tilework qualityilluminated manuscript border in the Gothic style, vine and trefoil ornament, ultramarine blue and ruby red with gold leaf details on cream vellum, rich jewel tones, vertical panel, medieval book of hours qualitywatercolor illustration of Art Nouveau floral ornament, whiplash curves with lily motif, sage green and dusty rose with amber gold accents, muted organic tones, vertical panel, Alphonse Mucha influence→ Prompt 25-50 words: rendering, motif, period, composition, explicit color.
If err: color wrong in output → front-load color desc (before motif). Z-Image weights earlier tokens more. Try hex / known pigment names (ultramarine, vermillion, ochre).
Color often needs more steps than mono.
Resolution by Application (same as ornament-style-mono):
┌────────────────────┬─────────────────────┬────────────────────────────────┐
│ Application │ Recommended │ Rationale │
├────────────────────┼─────────────────────┼────────────────────────────────┤
│ Medallion / Roundel│ 1024x1024 (1:1) │ Radial symmetry needs square │
│ Tile / Repeat Unit │ 1024x1024 (1:1) │ Square for seamless tiling │
│ Horizontal Frieze │ 1280x720 (16:9) │ Wide format for running border │
│ Vertical Panel │ 720x1280 (9:16) │ Portrait format for columns │
│ Wide Border │ 1344x576 (21:9) │ Ultrawide for architectural │
│ General / Flexible │ 1152x896 (9:7) │ Balanced landscape format │
│ Large Detail │ 1536x1536 (1:1) │ Higher res for fine color work │
└────────────────────┴─────────────────────┴────────────────────────────────┘
steps 10-12 for color (palette accuracy benefits)shift 3 (default)random_seed: true for explore or false w/ specific seed for reproducibility→ Complete param set. Color usually needs 10+ steps for fidelity.
If err: unsure → 1024x1024 @ 10 steps. Reliable default.
Z-Image MCP call.
mcp__hf-mcp-server__gr1_z_image_turbo_generate w/:
prompt: from Step 4resolution: from Step 5steps: from Step 5 (rec 10-12)shift: from Step 5random_seed: from Step 5seed: specific if random_seed false→ Image w/ recognizable forms + visible color. May not perfectly match palette — addressed in eval.
If err: MCP unavail → verify hf-mcp-server (configure-mcp-server / troubleshoot-mcp-connection). Fully abstract → prompt needs structural lang → Step 4. Colors completely wrong → front-load color names.
5 criteria.
Polychromatic Ornament Evaluation Rubric:
┌─────────────────────┬───────────────────────────────────────────────────────┐
│ Criterion │ Evaluation Questions │
├─────────────────────┼───────────────────────────────────────────────────────┤
│ 1. Palette Match │ Do the colors in the image approximate the specified │
│ │ palette? Are the named colors present? Are there │
│ │ unwanted colors that break the palette? │
├─────────────────────┼───────────────────────────────────────────────────────┤
│ 2. Color │ Does the color distribution roughly follow the │
│ Distribution │ 60/30/10 allocation? Is the dominant color actually │
│ │ dominant? Does the accent appear sparingly? │
├─────────────────────┼───────────────────────────────────────────────────────┤
│ 3. Rendering Style │ Does the image look like the specified rendering │
│ │ style? Does a "glazed tile" look glossy and flat? │
│ │ Does "illuminated manuscript" show gold and vellum? │
├─────────────────────┼───────────────────────────────────────────────────────┤
│ 4. Period Accuracy │ Would this design be recognizable as belonging to │
│ │ the specified period? Are motifs period-appropriate? │
│ │ Does the color usage match period conventions? │
├─────────────────────┼───────────────────────────────────────────────────────┤
│ 5. Form-Color │ Does color clarify the ornamental structure or │
│ Balance │ obscure it? Can you "read" the motifs through the │
│ │ color? Does color follow form as intended? │
└─────────────────────┴───────────────────────────────────────────────────────┘
→ Scored eval w/ specific obs. Color harder than mono → expect Adequate first gen.
If err: most Weak → fundamental restructure. Common: move colors to start, fewer colors, ground explicit, steps to 12.
Color-Specific Strategies:
Iteration Budget: ≤3 per concept. Color often needs more prompt adjustment than mono.
→ Improved fidelity after 1-2 iter. Perfect match unlikely — aim "right color family."
If err: not converging → palette too specific. Simplify (3 not 5), broader desc ("warm earth tones" not hex), accept closest.
Reproducibility record.
→ Reproducible record w/ full color docs incl hex + palette analysis.
If err: full doc excessive → at min: final prompt, seed, intended vs actual colors. Allows reproduction + adjustment.
ornament-style-monoornament-style-mono — mono foundation; fallback when color uncooperative; first step for understanding structurereview-web-design — color theory (contrast, harmony, rhythm) applies directlymeditate — focused attention + visualization can inform palette dev