Magical gene / speckle and dust

Speckling

Fine coloured speckles scattered over the coat and hooves to match - one colour with a single copy, two with a pair. Half a dozen other markings are described in terms of it.

What it can come out as

OutcomeCarrying
Two-colour specklingSpk/Spk
One-colour specklingSpk/n
Wild typen/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 833 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
Spk/SpkTwo-colour speckling0.006% — 1 in 16,667
Spk/nOne-colour speckling0.114% — 1 in 877
n/nWild type99.88%

Its gene carrot

The file

common/src/main/resources/horsegenetics/genes/speckling.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.speckling
Phasemagical — it adds signed colour in phase 3, after the pigment has resolved
Priority340 — where it sits in the one (priority, key) paint order
AllelesSpk · n
Varies per horse4 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look
Built fromAXIS, NOISE, SPECKLE, TOWARD

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.

Two-colour speckling

Two copies bring a second hue in alongside the first, mixed through the same field rather than divided from it, and the hooves take the leading colour.

  1. the first colour — SPECKLE, painted with TOWARD
  2. the second colour through the same field — SPECKLE × NOISE, painted with TOWARD
  3. hooves in the leading colour — AXIS, painted with TOWARD

One-colour speckling

A single copy gives one hue, scattered as fine points over the body, neck, head and legs - drifting into denser and thinner areas rather than lying evenly - with the hooves in the same colour.

  1. the speckles — SPECKLE, painted with TOWARD
  2. hooves to match — AXIS, painted with TOWARD

Wild type

No speckling.

Paints nothing.