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

OutcomeCarrying
Chalk sunW/W · W/B · W/C · W/n
Carved sunB/B · B/C · B/n
Coloured sunC/C
Wild typeC/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 pairShows asHow often
W/WChalk sun0.001% — 1 in 100,000
W/BChalk sun0.0013% — 1 in 75,019
W/CChalk sun0.0013% — 1 in 75,019
W/nChalk sun0.019% — 1 in 5,263
B/BCarved sun0.0013% — 1 in 75,019
B/CCarved sun0.0013% — 1 in 75,019
B/nCarved sun0.0013% — 1 in 75,019
C/CColoured sun0.0013% — 1 in 75,019
n/nWild type99.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.

Keyhorsegenetics.sunspiral
Phasemagical — it adds signed colour in phase 3, after the pigment has resolved
Priority146 — where it sits in the one (priority, key) paint order
AllelesW · B · C · n
Varies per horse2 values drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look
Built fromFAN, 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.

  1. the wound centre — PARTS × SPIRAL, painted with TOWARD
  2. dash ring 4.0-5.0 — PARTS × FAN × FAN, painted with TOWARD
  3. dash ring 5.6-6.6 — PARTS × FAN × FAN, painted with TOWARD
  4. dash ring 7.2-8.2 — PARTS × FAN × FAN, painted with TOWARD

Carved sun

The petroglyph form - a black spiral and five points of dashes cut into each flank.

  1. the wound centre — PARTS × SPIRAL, painted with TOWARD
  2. dash ring 4.0-5.0 — PARTS × FAN × FAN, painted with TOWARD
  3. dash ring 5.6-6.6 — PARTS × FAN × FAN, painted with TOWARD
  4. dash ring 7.2-8.2 — PARTS × FAN × FAN, painted with TOWARD

Coloured sun

The sun takes the line's own colour, darkest at the spiral and brightest at the outer dashes.

  1. the wound centre — PARTS × SPIRAL, painted with TOWARD
  2. dash ring 4.0-5.0 — PARTS × FAN × FAN, painted with TOWARD
  3. dash ring 5.6-6.6 — PARTS × FAN × FAN, painted with TOWARD
  4. dash ring 7.2-8.2 — PARTS × FAN × FAN, painted with TOWARD

Wild type

No marking.

Paints nothing.