Files
iron-arc/docs/art-direction.md
T
SoftwareApp 5f6574d08c 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.
2026-10-25 02:11:14 +01:00

92 lines
4.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Art Direction
Wie die Grafiken von IRON ARC entstehen: **SVG-Master → Raster**, alles aus einer
Palette-Datei generiert. Kein Pixelgeschubse, keine Binärdateien ohne Quelle.
```
tools/art/palette.json Design-Tokens (Farben, Type)
tools/art/artlib.py Primitiven: Gradienten, Grain, Vignette, Catmull-Rom-Kurven, Ballistik, Panzer
tools/art/gen_brand.py Icon (Legacy + Adaptive + Monochrom), Splash-Lockup, Feature-Graphic
tools/art/artgen.py CLI: brand | palette | preview | all
```
```bash
python3 tools/art/artgen.py all # Assets + app/lib/src/ui/palette.dart neu bauen
```
Voraussetzungen: `rsvg-convert` (librsvg ≥ 2.5), Roboto (Black/Bold/Medium). Prüfen mit
`rsvg-convert --version` und `fc-match 'Roboto:weight=black'`.
## Prinzipien
Die Regeln sind der Grund, warum die Bilder nicht nach Platzhalter aussehen:
1. **Licht kommt vom Horizont.** Eine Sonne tief über dem Grat liefert Glow, Rim-Lights und
Farbverläufe. Nie von oben links, nie zwei Lichtquellen.
2. **Jede Silhouette bekommt eine warme Kante.** Ein 2-px-Rim in `solar.light` trennt Berg und
Panzer vom Himmel – ohne ihn wirken Flächen wie Aufkleber.
3. **Eine Akzentfarbe.** Amber (`solar.*`) ist der Spieler, Stahlblau (`steel.*`) der Gegner.
Alles andere bleibt Ink/Text.
4. **Grain + Vignette über das ganze Bild.** 5 % Rauschen und eine weiche Vignette (0,36–0,42)
nehmen dem Vektor-Look die Kälte. Immer als letzte Ebene, nie pro Form.
5. **Bewegung statt Symmetrie.** Der Schuss ist asymmetrisch und verlässt das Bild nach oben
rechts. Ein vollständiger Parabelbogen liest sich als Kuppel oder Regenbogen.
6. **Typografie:** Roboto Black, Tracking −0,02 em für Wortmarken; Unterzeilen in
Versalien mit weitem Tracking (4–8). Genau **ein** farbiges Wort (`ARC`).
## Palette
| Gruppe | Tokens | Verwendung |
|---|---|---|
| `ink.0…3` | `#05070A` … `#1B2C44` | Canvas, Panels, Rahmen |
| `solar.*` | `#FFD9A0`, `#FFB347`, `#FF7A2F` | Spieler, Sonne, Akzent, CTA |
| `steel.*` | `#9FE3F0`, `#4EA8C8`, `#2C6F8A` | Gegner, Sekundärinformation |
| `terrain.*` | `#E8C08A`, `#7A6A45`, `#3A2F20`, `#241C12` | Boden, Rim-Light, Straten |
| `text.*` | `#F5F7FA`, `#A9B4C4`, `#6C7A8D` | Hierarchie |
`tools/art/artgen.py palette` schreibt daraus `app/lib/src/ui/palette.dart` – App und Assets
können damit nicht auseinanderlaufen.
## Assets und ihre Quellen
| Datei | Quelle | Größe |
|---|---|---|
| `store/assets/icon_512.png` | `icon_svg()` | 512 × 512, randlos |
| `store/assets/feature_1024x500.png` | `feature_svg()` | 1024 × 500 |
| `store/assets/logo_mark.png`, `app/assets/logo_mark.png` | `lockup_svg()` | 640 × 780, transparent |
| `res/drawable-xxxhdpi/launch_logo.png` | `lockup_svg()` | 512 breit (Pre-12-Launch) |
| `res/drawable-xxxhdpi/launch_logo_splash.png` | `splash_icon_svg()` | 512, Motiv in 60 % (API 31+) |
| `res/mipmap-*/ic_launcher.png` | `icon_svg()` | 48/72/96/144/192 |
| `res/mipmap-*/ic_launcher_{background,foreground,monochrome}.png` | `background_svg()`, `foreground_svg()`, `monochrome_svg()` | 108 dp × Dichte |
| `res/mipmap-anydpi-v26/ic_launcher{,_round}.xml` | `ADAPTIVE_XML` | Adaptive-Icon-Verknüpfung |
## Regeln für Adaptive Icons (Android 8+)
- Der Foreground wird in einem 108-dp-Canvas geliefert; sichtbar sind nur die inneren 72 dp.
`foreground_svg()` skaliert das Motiv deshalb auf 58 % und hebt es leicht an, damit der
Boden nicht in die Maske läuft.
- **Monochrom** (Android 13 Themed Icons) ist ein eigenes Motiv: Sonne, Teilschuss, Horizontlinie.
Keine Details, die bei 108 dp zu Matsch werden.
- Das Android-12-Splash-Icon wird vom System auf die inneren 192 von 288 dp maskiert; deshalb
ist `splash_icon_svg()` ein Kreis-Badge bei 60 % der Fläche.
## Was bei 48 dp noch lesbar sein muss
Der Test für jedes Icon: auf 48 × 48 px verkleinern und ansehen. Bestehen nur drei Dinge –
**Sonne**, **Diagonale**, **Bodenkante** – ist das Icon gut. Alles andere (Panzerdetails,
Sternen, Trail-Punkte) ist Zugabe für große Darstellungen.
## Offene Lücken (Phase 2)
Die Marken-Assets sind generiert; die **Ingame-Grafik** ist noch handgezeichneter Canvas-Code
(`app/lib/src/game/iron_arc_game.dart`): flacher Boden, Pastell-Rechtecke als Panzer.
Geplant ist ein `gen_ingame.py`, das aus derselben Palette liefert:
1. Himmel-Gradient + parallaxe Bergrücken als PNG-Ebenen (Flame `ParallaxComponent`).
2. Boden-Straten als kachelbare Textur plus Rim-Light entlang der Heightmap.
3. Panzer als Sprites (Hull/Turret/Lauf) statt Rechtecke, je Seite eine Palette.
4. Explosion/Mündungsfeuer als Sprite-Sheet statt gezeichneter Kreise.
Die Golden-Tests (`app/test/goldens/`) müssen danach mit `flutter test --update-goldens`
neu erzeugt und im Review angesehen werden.