Magical gene / ground and strong white

Panda

A strong white band round the belly and barrel, carrying on over the neck, head and tail, with the shoulder, the butt and all four legs keeping the coat - and the ears, eye patches and muzzle of a giant panda. A third allele carries the same marking worked in greys instead of white - dark where the pale form is light, and the same number of steps.

What it can come out as

OutcomeCarrying
PandaPan/Pan · Pan/Pnc · Pan/n · Pan/Pnk
Black PandaPnk/Pnk · Pnk/Pnc · Pnk/n
Coloured PandaPnc/Pnc
Wild typePnc/n · n/n

How each one is actually drawn - region by region, and the layers it is built from - is on the coding tab.

Crossing two of them

Finding one

About 1 in 1,786 wild horses is born showing this. That is the whole of the supply: catch one, or make one with the carrot below. Breeds set their own pools and a breed built around this gene will carry it far more often than the wild population does.

Wild pairShows asHow often
Pan/PanPanda0.002% — 1 in 50,000
Pan/PnkPanda0.0027% — 1 in 37,495
Pan/PncPanda0.0027% — 1 in 37,495
Pan/nPanda0.038% — 1 in 2,632
Pnk/PnkBlack Panda0.0027% — 1 in 37,495
Pnk/PncBlack Panda0.0027% — 1 in 37,495
Pnk/nBlack Panda0.0027% — 1 in 37,495
Pnc/PncColoured Panda0.0027% — 1 in 37,495
n/nWild type99.944%

Its gene carrot

The file

common/src/main/resources/horsegenetics/genes/panda.json — a data-driven gene, not a Java class. It is listed in the index.json beside it and registered by Genes' class initialiser at startup.

Keyhorsegenetics.panda
Phasemagical — it adds signed colour in phase 3, after the pigment has resolved
Priority203 — where it sits in the one (priority, key) paint order
AllelesPan · Pnk · Pnc · n
Varies per horse4 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look
Built fromAXIS, PARTS, SPOTS, TOWARD

Why it is built this way

The black allele is the white one with the light taken out of it, and it sits one rung under white in the dominance series - so every combination that existed before it keeps the outcome it had, and only the pairs carrying Pnk are new. The re-toning is a mapping rather than a repaint: every achromatic target moves into the dark end of the scale keeping its order and its spacing, and every SATURATED one is left alone, because that colour is the gene rather than its lightness.

What it paints

Each outcome, described the way the gene file describes it, and then the layers that draw it in the order they are painted. The prose is the part a reader checks a bake against; the list underneath is what the engine actually did.

Panda

White takes a band right round the middle of the horse - the belly and barrel, wrapping the whole circumference - and carries on over the neck, the head and the tail. The coat survives at the two ends of that band and nowhere else along the body: the shoulder in front of it, the butt and croup behind it, and all four legs the whole way down. The head is white apart from the ears, the muzzle and the patches round the eyes, which keep the coat and are what make it a panda; muzzle and ear markings are optional and the eye patches are a little stylised. Freckles of coat run along the top of the white band - small, or larger and fawn-like. The edges of the coloured regions are smooth: nothing about Panda is jagged or roaned, and no other marking shows on the white.

  1. white over the whole horse — PARTS, painted with TOWARD
  2. the coat kept on the shoulder, in front of the band — AXIS, painted with TOWARD
  3. the coat kept on the butt and croup, behind the band — AXIS, painted with TOWARD
  4. the coat kept on all four legs — PARTS, painted with TOWARD
  5. the coat kept on the ears, eyes and muzzle — PARTS × SPOTS, painted with TOWARD
  6. freckles of coat along the top of the band — SPOTS × AXIS × AXIS, painted with TOWARD

Black Panda

The same marking as the white form with the light taken out of it: a single near-black tone.

  1. white over the whole horse — PARTS, painted with TOWARD
  2. the coat kept on the shoulder, in front of the band — AXIS, painted with TOWARD
  3. the coat kept on the butt and croup, behind the band — AXIS, painted with TOWARD
  4. the coat kept on all four legs — PARTS, painted with TOWARD
  5. the coat kept on the ears, eyes and muzzle — PARTS × SPOTS, painted with TOWARD
  6. freckles of coat along the top of the band — SPOTS × AXIS × AXIS, painted with TOWARD

Coloured Panda

The same regions, with the ground in a colour the line carries rather than in white. Fully recessive: it takes two copies, and a single copy beside the white allele shows white. It never gives blue eyes, whatever the white form does.

  1. white over the whole horse, in colour — PARTS, painted with TOWARD
  2. the coat kept on the shoulder, in front of the band, in colour — AXIS, painted with TOWARD
  3. the coat kept on the butt and croup, behind the band, in colour — AXIS, painted with TOWARD
  4. the coat kept on all four legs, in colour — PARTS, painted with TOWARD
  5. the coat kept on the ears, eyes and muzzle, in colour — PARTS × SPOTS, painted with TOWARD
  6. freckles of coat along the top of the band, in colour — SPOTS × AXIS × AXIS, painted with TOWARD

Wild type

No panda.

Paints nothing.