Magical gene / colour modifiers
Invert
The last thing painted: the whole finished coat comes out as its own negative. White goes black, orange goes blue, and everything the horse was carrying goes with it.
What it can come out as
| Outcome | Carrying |
|---|---|
| Invert | Inv/Inv |
| Invert carrier | Inv/n |
| Wild type | 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 2,500 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 pair | Shows as | How often |
|---|---|---|
Inv/Inv | Invert | 0.04% — 1 in 2,500 |
n/n | Wild type | 99.96% |
Its gene carrot
The file
common/src/main/resources/horsegenetics/genes/invert.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.
| Key | horsegenetics.invert |
|---|---|
| Phase | magical — it adds signed colour in phase 3, after the pigment has resolved |
| Priority | 700 — where it sits in the one (priority, key) paint order |
| Alleles | Inv · n |
| Varies per horse | no — every horse carrying it looks the same |
| Built from | ALL, INVERT |
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.
Invert
It has no shape of its own and no colour of its own. Whatever the horse looks like once every other gene has had its turn, this takes the negative of it: a white sock becomes a black one, a chestnut becomes a deep blue-green, a gold mane becomes violet. It sits at the very end of the paint order, so it inverts a finished horse rather than an unfinished one - which is why two Invert horses out of very different parents still look like nothing else in the field. It takes two copies.
- the whole coat, negated —
ALL, painted withINVERT
Invert carrier
One copy shows nothing.
Paints nothing.
Wild type
Not inverted.
Paints nothing.