Magical gene / magical body-stat genes
Sunspiral
A tight spiral sits centred on each flank with three rings of short dashes thrown out around it, gathered into five points like a rock-carved sun.
What it can come out as
| Outcome | Carrying |
|---|---|
| Chalk sun | W/W · W/B · W/C · W/n |
| Carved sun | B/B · B/C · B/n |
| Coloured sun | C/C |
| Wild type | C/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 3,572 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 |
|---|---|---|
W/W | Chalk sun | 0.001% — 1 in 100,000 |
W/B | Chalk sun | 0.0013% — 1 in 75,019 |
W/C | Chalk sun | 0.0013% — 1 in 75,019 |
W/n | Chalk sun | 0.019% — 1 in 5,263 |
B/B | Carved sun | 0.0013% — 1 in 75,019 |
B/C | Carved sun | 0.0013% — 1 in 75,019 |
B/n | Carved sun | 0.0013% — 1 in 75,019 |
C/C | Coloured sun | 0.0013% — 1 in 75,019 |
n/n | Wild type | 99.972% |
Its gene carrot
The file
common/src/main/resources/horsegenetics/genes/sunspiral.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.sunspiral |
|---|---|
| Phase | magical — it adds signed colour in phase 3, after the pigment has resolved |
| Priority | 146 — where it sits in the one (priority, key) paint order |
| Alleles | W · B · C · 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 | FAN, PARTS, SPIRAL, TOWARD |
Why it is built this way
Two FANs on one pivot, multiplied. The fine one at spacing 0.36 makes about seventeen rays; the coarse one at spacing 1.257 makes five, and using it as a gate leaves three or four fine rays alive inside each of the five arms. That is where the star comes from, and neither FAN alone would have given it - FAN has one periodicity around the pivot and this needs two.
The dashes are three separate FAN layers bounded by inner and outer rather than one long ray broken up, because nothing in the vocabulary measures distance from a placed point except FAN's own bounds. Each ring is one unit deep with 0.6 of bare coat between - both above a texel.
The fine ray is 0.72 units wide at inner 4.0. Winding spacing below about 0.36 takes the inner ring under a texel and the innermost dashes silently disappear while the outer two stay, which reads as a tuning problem and is not one.
The SPIRAL centres itself on the BODY bounds and the FANs are written to the same point, (18.5, 16). Those numbers have to move together.
Sourced from a traced SVG, but not drawn with the SVG mask. The trace is a photo-trace: 800 to 4500 path commands across dozens to hundreds of subpaths, most of them trace noise. That is well past the point ceiling, which exists precisely to keep a traced photograph out of a gene file. It would also have made the marking identical on every horse. The reference was read for what KIND of shape each element is and rebuilt from field masks instead. If a hand-drawn, low-node version of the source ever exists, the SVG mask with its d string pasted verbatim is the better gene.
Arrived keyed 'ixora.sunspiral'. Renamed to the horsegenetics namespace every other gene in the mod uses - the format allows a modder their own, but a gene shipping INSIDE this mod under a second namespace breaks the tooling that builds a key from a slug.
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.
Chalk sun
A chalk-white spiral inside three rings of dashes, gathered into five points.
- the wound centre —
PARTS×SPIRAL, painted withTOWARD - dash ring 4.0-5.0 —
PARTS×FAN×FAN, painted withTOWARD - dash ring 5.6-6.6 —
PARTS×FAN×FAN, painted withTOWARD - dash ring 7.2-8.2 —
PARTS×FAN×FAN, painted withTOWARD
Carved sun
The petroglyph form - a black spiral and five points of dashes cut into each flank.
- the wound centre —
PARTS×SPIRAL, painted withTOWARD - dash ring 4.0-5.0 —
PARTS×FAN×FAN, painted withTOWARD - dash ring 5.6-6.6 —
PARTS×FAN×FAN, painted withTOWARD - dash ring 7.2-8.2 —
PARTS×FAN×FAN, painted withTOWARD
Coloured sun
The sun takes the line's own colour, darkest at the spiral and brightest at the outer dashes.
- the wound centre —
PARTS×SPIRAL, painted withTOWARD - dash ring 4.0-5.0 —
PARTS×FAN×FAN, painted withTOWARD - dash ring 5.6-6.6 —
PARTS×FAN×FAN, painted withTOWARD - dash ring 7.2-8.2 —
PARTS×FAN×FAN, painted withTOWARD
Wild type
No marking.
Paints nothing.