Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

Map: darker, warmer unit uniforms and a trodden-earth base (refs #197) (#429)

Eyal Golan9549c9db20e2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 068d40fe4..6ef0530ea 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -196,6 +196,9 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB
+0.9 ms at the gameplay zoom), not yet on an idle one.
### Changed
+- Map: the unit figures' uniforms are darker and warmer, so a trio stands out against the sunlit ground as promo 03's
+ does instead of khaki on khaki; a figure's slope base is painted trodden earth instead of a dark grey disc. A
+ readability choice at map scale; the sourced kit is unchanged (refs #197).
- The scenario runner (`Scenario`) and the `mvp-slice` golden's player (`MvpGolden`) move from the tests into `Statecraft.Sim`,
next to `GoldenRun`, so Unity can play those goldens too (step 1 of #394). Same code, same hashes; no golden moves.
- Sea round 2 (refs #388). The sea has texture at the gameplay and overview zooms, where it used to read as a flat
diff --git a/docs/units.md b/docs/units.md
index 47498901b..ef2e1fe22 100644
--- a/docs/units.md
+++ b/docs/units.md
@@ -189,7 +189,7 @@ checks every anchor and logs each spot and its distance.
- **Slopes (owner question, 2026-10-11).** Each rifleman stands on the highest ground under its boots
(`UnitShowcase.Stand`: the centre plus 48 points on three rings out to the boots' 400 m radius), so no boot sinks into
a hill. Where the ground under the boots falls more than 20 m, the figure stands on a base, as a painted miniature
- does. The base is a dark grey-brown disc (the palette's deck shade) of the boots' radius, reaching down to the lowest ground, so the
+ does. The base is a disc of trodden earth (the palette's `Dust`) of the boots' radius, reaching down to the lowest ground, so the
downhill boot never floats.
- **Steepest spots:** the worst drop is about 0.6–1 km, against a 3.6 km figure, on the 3x relief of the Jerusalem
hills.
@@ -294,6 +294,18 @@ sized against the figures, as Civ sizes them, not against each other.
buildings and trees. At 10–25x a man is 18–45 m tall, which is under one pixel at 60 km. The promo, which wins over strict
scale by the owner's ruling, draws units as tokens. The scale is one constant.
+## Colour at map scale
+
+The uniform's colours (shirt, faded shirt, trousers, bush hat in `UnitPalette`) are darker and browner than the khaki
+drill of the photographs. This is a readability choice at map scale, not a new historical claim: the 1948 photographs
+are black and white, and the kit itself (khaki drill, 37-pattern webbing, the three headgear) is unchanged and sourced
+below. Measured on editor renders of both tiers (gameplay03, the showcase trio at 20 km, the 7th Brigade at 15 km,
+Golani at 12 km, Harel at 15 km in the Judean hills and Etzioni at 30 km), a figure was 0.68–0.82 of the surrounding
+ground's luminance with the old, lighter khaki, and blended into it; it is now 0.50–0.57, and warm (red above green).
+Promo 03's figures are about 0.45 (figures round 1, refs #197). The webbing stays pale, as the promo's straps do. A
+slope base is painted trodden earth (`Dust`), within 7% of the ground's luminance where measured, so it reads as the
+promo's worn patch rather than a dark disc. The aircraft and ship colours are untouched.
+
## Sources (checked 2026-10-11)
Uniform and equipment, 1948:
diff --git a/unity/Assets/Scripts/Map/Units/UnitPalette.cs b/unity/Assets/Scripts/Map/Units/UnitPalette.cs
index 325271874..b78fc373e 100644
--- a/unity/Assets/Scripts/Map/Units/UnitPalette.cs
+++ b/unity/Assets/Scripts/Map/Units/UnitPalette.cs
@@ -9,13 +9,15 @@ namespace Statecraft.Game.Map.Units
/// Air Force, p. 12). The Spitfire's RAF day-fighter colours (Ocean Grey and Dark Green over Medium Sea Grey) are
/// Efrati's p. 14. The S-199's khaki green is about RAL 6013 (Efrati pp. 8 and 11). The corvette's light grey follows its 1948 photograph. Colours are
/// pushed a little warmer and lighter than the photographs so they read at map scale under the warm grade, as the
- /// promo's painted figures do. The texture is made at runtime (no file ships), owned by the showcase.</summary>
+ /// promo's painted figures do. The figures' uniform slots (shirt, faded shirt, trousers, bush hat) are the exception:
+ /// they are darker and browner than the photographs' khaki, so a figure stands out against the sunlit ground as promo
+ /// 03's do (a readability choice at map scale, not a claim about the cloth: the 1948 photographs are black and white). The texture is made at runtime (no file ships), owned by the showcase.</summary>
public static class UnitPalette
{
public const int Skin = 0, Shirt = 1, Trousers = 2, Webbing = 3, Helmet = 4, SlouchHat = 5, WoolCap = 6, Boots = 7,
RifleWood = 8, RifleMetal = 9, Hair = 10, ShirtFaded = 11,
CamoGrey = 12, CamoGreen = 13, Underside = 14, RoundelWhite = 15, RoundelBlue = 16, PropBlack = 17, Glass = 18,
- HullGrey = 19, Deck = 20, Waterline = 21, Funnel = 22, MarkingRed = 23, AviaGreen = 24, Count = 25;
+ HullGrey = 19, Deck = 20, Waterline = 21, Funnel = 22, MarkingRed = 23, AviaGreen = 24, Dust = 25, Count = 26;
/// <summary>Texels per slot along u: the sample at a slot's centre never reaches its neighbours (bilinear, no mips).</summary>
public const int SlotWidth = 4, Rows = 32;
@@ -23,17 +25,17 @@ namespace Statecraft.Game.Map.Units
static readonly Color[] Base =
{
new Color(0.80f, 0.60f, 0.46f), // Skin: sun-tanned
- new Color(0.74f, 0.63f, 0.42f), // Shirt: khaki drill
- new Color(0.47f, 0.40f, 0.28f), // Trousers: khaki drill, darker and dustier (the photographs' trousers read darker than the shirts)
+ new Color(0.42f, 0.31f, 0.21f), // Shirt: khaki drill, darker and warmer than the photographs' (see the class note)
+ new Color(0.26f, 0.19f, 0.14f), // Trousers: khaki drill, darker and dustier (the photographs' trousers read darker than the shirts)
new Color(0.86f, 0.80f, 0.62f), // Webbing: 37-pattern, pale
new Color(0.30f, 0.31f, 0.22f), // Helmet: Mk II steel helmet, dark olive
- new Color(0.60f, 0.49f, 0.33f), // SlouchHat: khaki felt
+ new Color(0.38f, 0.28f, 0.19f), // SlouchHat: khaki felt
new Color(0.36f, 0.33f, 0.27f), // WoolCap: knitted stocking cap, dark
new Color(0.20f, 0.14f, 0.10f), // Boots
new Color(0.45f, 0.28f, 0.16f), // RifleWood
new Color(0.20f, 0.20f, 0.21f), // RifleMetal
new Color(0.17f, 0.13f, 0.10f), // Hair
- new Color(0.80f, 0.71f, 0.50f), // ShirtFaded: sun-bleached khaki
+ new Color(0.50f, 0.38f, 0.26f), // ShirtFaded: sun-bleached khaki
new Color(0.47f, 0.50f, 0.50f), // CamoGrey: ocean grey
new Color(0.27f, 0.32f, 0.22f), // CamoGreen: dark green
new Color(0.68f, 0.71f, 0.72f), // Underside: medium sea grey
@@ -47,6 +49,7 @@ namespace Statecraft.Game.Map.Units
new Color(0.30f, 0.31f, 0.32f), // Funnel top
new Color(0.72f, 0.12f, 0.10f), // MarkingRed: 101 Squadron's spinner and rudder stripes
new Color(0.47f, 0.45f, 0.32f), // AviaGreen: the S-199's one khaki green on all surfaces, about RAL 6013 (Efrati pp. 8 and 11: confirmed from an Avia fuel cap; Eduard Info 11/2025 pp. 53-54)
+ new Color(0.80f, 0.71f, 0.54f), // Dust: the trodden earth a figure's base is painted in, so it reads as the promo's worn patch, not a dark disc
};
/// <summary>u of a slot's column centre.</summary>
diff --git a/unity/Assets/Scripts/Map/Units/UnitShowcase.cs b/unity/Assets/Scripts/Map/Units/UnitShowcase.cs
index ce9db2000..8767bf34a 100644
--- a/unity/Assets/Scripts/Map/Units/UnitShowcase.cs
+++ b/unity/Assets/Scripts/Map/Units/UnitShowcase.cs
@@ -263,14 +263,14 @@ namespace Statecraft.Game.Map.Units
return (top, low);
}
- /// <summary>A figure on a slope stands on a base, as a painted miniature does: a short dark grey-brown disc (the palette deck shade) of the
+ /// <summary>A figure on a slope stands on a base, as a painted miniature does: a short disc in the palette's trodden-earth dust of the
/// boots' radius from its feet down to the lowest ground under them, so the downhill boot never floats. Not drawn
/// on ground flatter than this rise (m).</summary>
public const float BaseFromRiseM = 20f;
/// <summary>The unit disc a base is drawn with (radius 1, from y = -1 to 0), scaled per figure.</summary>
public static Mesh BaseMesh(string name) =>
- new MiniatureMesh().Lathe(Matrix4x4.identity, new List<Vector2> { new Vector2(-1f, 1f), new Vector2(0f, 1f) }, UnitPalette.Deck, 16, shade: 0.55f).Build(name);
+ new MiniatureMesh().Lathe(Matrix4x4.identity, new List<Vector2> { new Vector2(-1f, 1f), new Vector2(0f, 1f) }, UnitPalette.Dust, 16, shade: 0.55f).Build(name);
/// <summary>Adds the base under a figure standing at <paramref name="feet"/> when the ground under its boots falls
/// more than <see cref="BaseFromRiseM"/> below them (see <see cref="StandRange"/>).</summary>
diff --git a/unity/Assets/Tests/EditMode/UnitShowcaseTests.cs b/unity/Assets/Tests/EditMode/UnitShowcaseTests.cs
index a004e9dc7..fec3e85fb 100644
--- a/unity/Assets/Tests/EditMode/UnitShowcaseTests.cs
+++ b/unity/Assets/Tests/EditMode/UnitShowcaseTests.cs
@@ -121,6 +121,28 @@ public class UnitShowcaseTests
Object.DestroyImmediate(tex);
}
+ /// <summary>Figures round 1 (refs #197): the uniform reads darker than the sunlit ground and warm brown, as promo 03's
+ /// figures do (figure/ground luminance about 0.45 there; 0.68-0.82 with the old khaki, 0.50-0.57 now, on the editor
+ /// renders), and the slope base is trodden earth, not a dark disc. Measured on the paint as drawn: the middle shade row
+ /// (Shade at 0.5, with its wash), Rec. 709 weights. The old khaki was 0.39-0.52 there and red/green 1.13-1.21.</summary>
+ [Test]
+ public void TheUniformIsDarkAndWarmAndTheBaseIsEarth()
+ {
+ static float Luma(Color c) => 0.2126f * c.r + 0.7152f * c.g + 0.0722f * c.b;
+ foreach (var slot in new[] { UnitPalette.Shirt, UnitPalette.ShirtFaded, UnitPalette.Trousers, UnitPalette.SlouchHat })
+ {
+ var c = UnitPalette.Shade(slot, 0.5f);
+ Assert.Less(Luma(c), 0.35f, $"slot {slot}: dark enough to stand out against the ground");
+ Assert.Greater(c.r / c.g, 1.24f, $"slot {slot}: warm brown, not olive khaki");
+ }
+ Assert.Less(Luma(UnitPalette.Shade(UnitPalette.Trousers, 0.5f)), Luma(UnitPalette.Shade(UnitPalette.Shirt, 0.5f)), "the trousers read darker than the shirt");
+ Assert.Greater(Luma(UnitPalette.Shade(UnitPalette.Dust, 0.5f)), 1.5f * Luma(UnitPalette.Shade(UnitPalette.Shirt, 0.5f)), "the base is earth, well lighter than the figure");
+ Assert.Greater(Luma(UnitPalette.Shade(UnitPalette.Dust, 0.5f)), Luma(UnitPalette.Shade(UnitPalette.Deck, 0.5f)) + 0.1f, "not the old dark deck-grey disc");
+ var disc = UnitShowcase.BaseMesh("base");
+ Assert.IsTrue(disc.uv.All(uv => Mathf.Abs(uv.x - UnitPalette.U(UnitPalette.Dust)) < 1e-4f), "the base is painted in the dust");
+ Object.DestroyImmediate(disc);
+ }
+
[Test]
public void FlightHoldsItsStillPhaseAndKeepsItsAltitude()
{