Magical gene / fields and regions
Moonwing
A pearl-white wing sweeps up over the topline and down both sides of the barrel, dusted with a faint shimmer of blue, violet and pink and bound at the edge by a thick band of gold; the pearl form gilds and dusts every other white marking the horse carries to match. Rare foals carry it reversed - the wing itself coloured, the gold unchanged. 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
| Outcome | Carrying |
|---|---|
| Moonwing, pearl | Mnw/Mnw · Mnw/Mnc · Mnw/n · Mnw/Mnk |
| Moonwing, black | Mnk/Mnk · Mnk/Mnc · Mnk/n |
| Moonwing, coloured | Mnc/Mnc |
| Wild type | Mnc/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 7,142 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 |
|---|---|---|
Mnw/Mnw | Moonwing, pearl | 0.0005% — 1 in 200,000 |
Mnw/Mnk | Moonwing, pearl | 0.0007% — 1 in 149,925 |
Mnw/Mnc | Moonwing, pearl | 0.0007% — 1 in 149,925 |
Mnw/n | Moonwing, pearl | 0.0095% — 1 in 10,526 |
Mnk/Mnk | Moonwing, black | 0.0007% — 1 in 149,925 |
Mnk/Mnc | Moonwing, black | 0.0007% — 1 in 149,925 |
Mnk/n | Moonwing, black | 0.0007% — 1 in 149,925 |
Mnc/Mnc | Moonwing, coloured | 0.0007% — 1 in 149,925 |
n/n | Wild type | 99.986% |
Its gene carrot
The file
common/src/main/resources/horsegenetics/genes/moonwing.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.moonwing |
|---|---|
| Phase | magical — it adds signed colour in phase 3, after the pigment has resolved |
| Priority | 283 — where it sits in the one (priority, key) paint order |
| Alleles | Mnw · Mnk · Mnc · n |
| Varies per horse | 2 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look |
| Built from | LUMA, PALETTE, PARTS, SPECKLE, SVG, TOWARD |
Why it is built this way
The wing is an SVG path, and it is the first gene in the mod that carries an actual drawing. The import shipped it as one big soft SPOTS blob per side and said so: a blob is round and a wing is pointed, and no radius or stretch makes a lattice cell into a silhouette. A drawn outline is the answer to that, and 'plane': 'side' extrudes it through the horse so one drawing appears on both flanks without either being placed by hand.
The extrusion is also what puts it over the TOPLINE. A side-plane SVG ignores z entirely, so the drawing is a function of x and y alone: raise the viewport past the top of the barrel and the same outline that covers the flanks covers the back between them, with no seam and nothing placed twice. The viewport is deliberately taller than the barrel for that reason - the top of the wing is clipped off by the horse, which is what makes it wrap.
The gold trim is the SAME path stroked instead of filled, so the band cannot drift off the edge it is meant to bind however the viewport is tuned. The import built its trim by growing the blob and subtracting the blob back out, which works and which no longer has to.
'fit': 'none' - the drawing is deliberately stretched to fill its viewport rather than fitted inside it, because the wing is meant to be as long as the ribcage and a proportional fit would leave it a small square mark in the middle of the flank.
The dust is a static three-colour stipple. The reference's shimmer is a viewing-angle effect and the coat is a baked texture; the honest half of that is a fixed iridescent speckle, and it is what this ships.
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 Mnk 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.
Moonwing, pearl
Twin pearl-white wings sweep up over the topline and down both flanks, glimmering with a faint blue-violet-pink dust and bound at the edge by a thick band of gold - and every other white marking the horse carries is gilded and dusted to match.
The two gilding layers run FIRST, before the wing is laid down. LUMA reads the coat as it stands when the layer runs, so a wing painted first would be read back as another white marking and edged twice.
The gold edge is the white selection intersected with the same selection inverted and grown 1.3 units. Growing the NOT-white eats that far into the white, so the intersection is a rim just inside every white border - which is where the wing's own stroked band sits too, and is why the two read as one trait rather than as a gene and a side effect.
- the same dust over any other white the horse carries —
LUMA×SPECKLE, painted withPALETTE - and a gold edge run round the inside of it —
LUMA×LUMA inverted, painted withTOWARD - the wing —
PARTS×SVG, painted withTOWARD - the dust over it —
PARTS×SVG×SPECKLE, painted withPALETTE - and the gold band round its edge —
PARTS×SVG, painted withTOWARD
Moonwing, black
The same marking as the white form with the light taken out of it: a single near-black tone, and the coloured accents unchanged.
- the same dust over any other white the horse carries —
LUMA×SPECKLE, painted withPALETTE - and a gold edge run round the inside of it —
LUMA×LUMA inverted, painted withTOWARD - the wing —
PARTS×SVG, painted withTOWARD - the dust over it —
PARTS×SVG×SPECKLE, painted withPALETTE - and the gold band round its edge —
PARTS×SVG, painted withTOWARD
Moonwing, coloured
The same wings, but the field itself carries deep colour instead of white - the same dust, the same gold binding.
- the wing —
PARTS×SVG, painted withTOWARD - the dust over it —
PARTS×SVG×SPECKLE, painted withPALETTE - and the gold band round its edge —
PARTS×SVG, painted withTOWARD
Wild type
Nothing.
Paints nothing.