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
+43
View File
@@ -0,0 +1,43 @@
// GENERATED FILE - do not edit by hand.
// Source: tools/art/palette.json, generator: tools/art/artgen.py
// Re-run `python3 tools/art/artgen.py palette` after changing a token.
import 'package:flutter/material.dart';
/// Design tokens shared by the app and the generated art.
abstract final class Palette {
// ink
static const ink0 = Color(0xFF05070A);
static const ink1 = Color(0xFF0A1220);
static const ink2 = Color(0xFF101B2E);
static const ink3 = Color(0xFF1B2C44);
// solar
static const solarLight = Color(0xFFFFD9A0);
static const solarBase = Color(0xFFFFB347);
static const solarDeep = Color(0xFFFF7A2F);
// steel
static const steelLight = Color(0xFF9FE3F0);
static const steelBase = Color(0xFF4EA8C8);
static const steelDeep = Color(0xFF2C6F8A);
// terrain
static const terrainRim = Color(0xFFE8C08A);
static const terrainTop = Color(0xFF7A6A45);
static const terrainSoil = Color(0xFF3A2F20);
static const terrainDeep = Color(0xFF241C12);
// state
static const stateDanger = Color(0xFFFF5A5F);
static const stateOk = Color(0xFF6BD08A);
// text
static const textHi = Color(0xFFF5F7FA);
static const textMid = Color(0xFFA9B4C4);
static const textLow = Color(0xFF6C7A8D);
// type
}
+4 -2
View File
@@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'palette.dart';
/// Brand splash shown while the native match library, the session and the
/// ad SDK boot. The logo pulses so a cold start reads as "loading" instead of
/// a frozen screen - the native launch theme uses the same colour and image,
@@ -8,8 +10,8 @@ class SplashScreen extends StatefulWidget {
const SplashScreen({super.key});
/// Canvas colour of the game; the Android launch theme uses the same value.
static const background = Color(0xFF05070A);
static const accent = Color(0xFFFF8A3D);
static const background = Palette.ink0;
static const accent = Palette.solarBase;
@override
State<SplashScreen> createState() => _SplashScreenState();