Magical gene / fields and regions
Cosmic
A starfield hung off the topline and the crest, thinning out to nothing before the poll and before the knee rather than stopping anywhere - and, on a well-marked horse, a planet or two with a ring round it.
What it can come out as
| Outcome | Carrying |
|---|---|
| Cosmic | Cs/Cs · Cs/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 1,250 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 |
|---|---|---|
Cs/Cs | Cosmic | 0.004% — 1 in 25,000 |
Cs/n | Cosmic | 0.076% — 1 in 1,316 |
n/n | Wild type | 99.92% |
Its gene carrot
The file
common/src/main/resources/horsegenetics/genes/cosmic.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.cosmic |
|---|---|
| Phase | magical — it adds signed colour in phase 3, after the pigment has resolved |
| Priority | 250 — where it sits in the one (priority, key) paint order |
| Alleles | Cs · n |
| Varies per horse | 5 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look |
| Built from | AXIS, PALETTE, PARTS, PATCHES, RAMP, RINGS, SPECKLE, SPOTS, 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.
Cosmic
The blanket starts at the dorsal midline and spreads down and out from it, one continuous region with no holes in it and no islands off it. It covers the back and the barrel, hangs off the crest for the first half of the neck, and reaches a little way onto the top of each leg - but it does not stop anywhere: it thins out and is simply gone before the poll and before the knee, so there is no edge on it at either end. Its lower boundary on the barrel is the same long fade. Inside are stars, thickest near the topline and thinning with the field itself, with a planet or a spiral galaxy on a heavily marked horse. Where the blanket meets the mane or the tail base the colour runs on into the hair, deepening toward the tips.
- the blanket over the back and barrel —
AXIS×PATCHES×AXIS, painted withRAMP - the blanket running out along the neck —
AXIS×AXIS, painted withRAMP - and running out again down the legs —
AXIS, painted withRAMP - the starfield inside it, densest at the spine —
AXIS×SPECKLE, painted withTOWARD - stars carried onto the neck with it —
AXIS×AXIS×SPECKLE, painted withTOWARD - a planet or two, with a ring at an angle to it —
SPOTS×AXIS, painted withPALETTE - the ring around each planet —
RINGS×AXIS, painted withTOWARD - the colour carried into the mane and tail —
PARTS, painted withRAMP
Wild type
No blanket.
Paints nothing.