算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
enhance-glyph【设计与创意】Improve an existing R-based pictogram glyph for the visualization layer. Covers visual audit of the current glyph, diagnosis of specific issues (proportions, readability, glow balance), targeted modifications to the glyph function, re-rendering, and before/after comparison. Works for skill, agent, and team glyphs. Use when a glyph renders poorly at s…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
改 viz/ 視化層中既有之字符——察其渲、診視之病、施針對之變、再渲、前後較。適於技、員、團之字符。
skill、agent 或 teamcommit-changes、mystic、tending)觀當前字符,識具體病。
viz/R/primitives*.R(19 域分文件),於 viz/R/glyphs.R 映viz/R/agent_primitives.R,於 viz/R/agent_glyphs.R 映viz/R/team_primitives.R,於 viz/R/team_glyphs.R 映viz/public/icons/cyberpunk/<domain>/<skillId>.webpviz/public/icons/cyberpunk/agents/<agentId>.webpviz/public/icons/cyberpunk/teams/<teamId>.webpGlyph Quality Dimensions:
+----------------+------+-----------------------------------------------+
| Dimension | 1-5 | Assessment Criteria |
+----------------+------+-----------------------------------------------+
| Readability | | Recognizable at 48px? Clear at 160px? |
| Proportions | | Well-centered? Good use of the 100x100 canvas?|
| Metaphor | | Does the shape clearly represent the entity? |
| Glow balance | | Glow enhances without overwhelming? |
| Palette compat | | Looks good across cyberpunk + viridis palettes?|
| Complexity | | Appropriate layer count (not too busy/sparse)? |
+----------------+------+-----------------------------------------------+
得: 病之明診,知何維宜改。察宜具體:「比例:字符僅用畫布四成」非「看上去差」。
敗則: 若字符函缺或實體未於 *_glyphs.R 映,字符或尚未造——當用 create-glyph。
定所識病之因。
size < 1.5)乎?s 過小或過大乎?ggfx::with_outer_glow() 交互:
col/bright 參乎?得: 根因直指碼改。「字符過小」→「尺因子為 0.6,當 0.8」。「光壓」→「三重疊填多邊形各生光」。
敗則: 若根因非顯於碼察,以異參孤渲字符以隔問題。以 render_glyph() 單字符試之。
編字符函以處所診之病。
s 乘因或元素偏移col/bright 參,加 alpha 以增深glyph_name <- function(cx, cy, s, col, bright) {
# cx, cy = center (50, 50)
# s = scale (1.0 = ~70% of canvas)
# col = domain color, bright = brightened variant
# Returns: list() of ggplot2 layers
}
得: 已改之函處一、二步所識病。改為針對且最少——增飾,非重設。
敗則: 若改使他維更差(如修比例壞易讀),復原試他法。若需全重設,當用 create-glyph。
渲改後字符,驗修。必用 build.sh——其處平台辨識與 R 本選。見 render-icon-pipeline 以全旗參。
依實體類再渲:
# From project root — use --no-cache to force re-render of modified glyph
bash viz/build.sh --only <domain> --no-cache # skills
bash viz/build.sh --type agent --only <id> --no-cache # agents
bash viz/build.sh --type team --only <id> --no-cache # teams
驗出之文件於預期路於各色板
察文件大——圖宜 2-15 KB(WebP):
得: 諸色板之新圖生。文件大於預期域。
敗則: 若 build 本有誤,察 R 控之出以求具體誤。常因:字符函缺閉括、呼未定原件、返非列表。若渲成而出空,字符層或出畫布界。
驗改進所的之維。
viz/ 運 python3 -m http.server 8080得: 所的維可量之增,他維無退。字符於二尺與諸色板皆更佳。
敗則: 若進微或有退,復原改重思診。有時原字符之限乃象之本,非施之病——彼時象本身或須易(升 create-glyph)。
build-icons.R,agents 用 build-agent-icons.R,teams 用 build-team-icons.R