art: generated brand system (icon, splash, feature graphic, tokens)

- tools/art/: SVG-authored art rasterised with librsvg. artlib.py provides
gradients, blur/grain/vignette filters, Catmull-Rom paths, reproducible ridges,
ballistics and type; gen_brand.py builds every asset; artgen.py is the CLI.
- palette.json is the single source of truth: it drives the art *and* generates
app/lib/src/ui/palette.dart (splash now reads Palette.ink0/solarBase).
- new icon: dusk scene with sun, an asymmetric shot leaving the frame top-right
and a tank silhouette at the muzzle. Legacy mipmaps + adaptive layers
(background/foreground/monochrome) + anydpi-v26 XML, monochrome for Android 13
themed icons.
- splash: circular badge (zoomed, mask-safe) for the Android 12 splash, badge +
wordmark lockup for the pre-12 launch bitmap and the Flutter splash. The system
icon plate is now identical to the background, so the badge floats.
- feature graphic rebuilt as a poster: type block left, scene confined to the
right half so the shot never crosses the wordmark.
- type aligned with the store title: "TAKTISCHES PANZERDUELL".
- docs/art-direction.md documents principles, palette, asset sources and the
ingame phase 2 plan.
This commit is contained in:
2026-10-25 02:11:14 +01:00
parent 3fb9dce729
commit 5f6574d08c
42 changed files with 1150 additions and 5 deletions
+34
View File
@@ -166,6 +166,40 @@ startete erst beim ersten Zugriff (Bootlog 0 ms). Jetzt Start in `main()`.
- MIUI verweigert `adb install` von release-signierten APKs (`INSTALL_FAILED_USER_RESTRICTED`) →
fuer Messungen `--profile` (AOT, debug-signiert).
## M7d — Grafik-Pipeline (erledigt 2026-10-25)
**Ausgangslage:** Icon, Feature-Graphic und Splash bestanden aus flachen Formen – Mintgrün
gegen Navy, keine Tiefe, keine Lichtführung, Wortmarke in Standardschrift.
**Lösung:** Assets werden generiert statt gemalt. `tools/art/` erzeugt SVG-Master und
rastert sie mit librsvg; Farben kommen aus `palette.json`, das auch `app/lib/src/ui/palette.dart`
speist. Damit können App-Theme und Grafik nicht auseinanderlaufen.
| Baustein | Inhalt |
|---|---|
| `artlib.py` | Gradienten, Blur/Grain/Vignette-Filter, Catmull-Rom-Kurven, reproduzierbare Hügelketten, Ballistik, Text mit Tracking |
| `gen_brand.py` | Icon (Legacy-Mipmaps + Adaptive Background/Foreground + Monochrom), Splash-Badge und -Lockup, Feature-Graphic |
| `artgen.py` | CLI `brand \| palette \| preview \| all`, schreibt 24 Dateien |
**Gestaltungsregeln** (dokumentiert in [../art-direction.md](../art-direction.md)): Licht vom
Horizont, warme Rim-Lights auf jeder Silhouette, genau eine Akzentfarbe, Grain+Vignette über
das ganze Bild, Asymmetrie statt Kuppel, Roboto Black mit negativem Tracking.
**Erkenntnisse**
- Ein vollständiger Ballistikbogen liest sich als Kuppel oder Regenbogen. Erst der Bogen, der
das Bild nach oben rechts verlässt, wirkt wie ein Schuss.
- Androids Splash-Icon maskiert alles außerhalb der inneren 192 von 288 dp → Motiv muss in
~60 % der Fläche liegen; eine kreisförmige Plakette mit gezoomtem Ausschnitt schlägt
jede rechteckige Kachel.
- Das zusätzliche `dy`-Verschieben war nötig, weil der Adaptive-Foreground sonst in die
108-dp-Maske läuft (Motiv auf 58 %, leicht angehoben).
- Wortmarken in SVG verlieren das Leerzeichen zwischen Tspanen → explizites `dx`.
- rsvg/Pango braucht installierte Fonts; Roboto aus dem Flutter-Cache nach
`~/.local/share/fonts` kopieren, sonst rendert Pango in DejaVu.
**Offen (Phase 2):** die Ingame-Grafik ist weiterhin Canvas-Code (flacher Boden,
Rechteck-Panzer). `docs/art-direction.md` beschreibt das geplante `gen_ingame.py`.
## Nächste Schritte (aktualisiert)
1. `bundletool build-apks --connected-device` aus `~/exports/iron-arc-0.7.0.aab` → Install → Smoke.