Magical gene / speckle and dust

Wishstar

One four-pointed sparkle sits high on each flank, with a long tail below it and a soft bloom around it. It holds its light after dark.

What it can come out as

OutcomeCarrying
WishstarWs/Ws · Ws/ws · Ws/n
Wishstar, colouredws/ws
Wild typews/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,571 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
Ws/WsWishstar0.001% — 1 in 100,000
Ws/wsWishstar0.004% — 1 in 25,000
Ws/nWishstar0.019% — 1 in 5,263
ws/wsWishstar, coloured0.004% — 1 in 25,000
n/nWild type99.972%

Its gene carrot

The file

common/src/main/resources/horsegenetics/genes/wishstar.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.wishstar
Phasemagical — it adds signed colour in phase 3, after the pigment has resolved
Priority333 — where it sits in the one (priority, key) paint order
AllelesWs · ws · n
Varies per horse1 value drawn once off the expressing allele copy, so a foal that inherits the copy inherits the look
Built fromSVG, TOWARD, emissive

Why it is built this way

The smallest marking in this set: about 2 units wide and 4.4 tall against a 22-unit barrel. The bloom is the same path at roughly twice the size with the softness wound right up and the opacity down, painted first so the star sits inside it.

Both layers use fit meet, so the drawing keeps its aspect and the viewport is a bound rather than a stretch. sizeU is set from the path's own 282:519 bounding box - asking for a square viewport here would squash the star and it would not look deliberate.

Drawn shape, so it is the same on every horse and mirrored onto both flanks by the side plane.

Arrived at priority 134. Moved to 333: speckle and dust, beside stars (330) - a small mark, so it paints late. The arriving number was taken, or sat in a band whose family does not describe this marking - priority is both the paint order and the family the sidebar files a gene under.

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.

Wishstar

A single lit white sparkle on each flank, tailed and haloed.

  1. the bloom around it — SVG, painted with TOWARD
  2. the star — SVG, painted with TOWARD, and it glows

Wishstar, coloured

The same sparkle in the colour this line carries.

  1. the bloom around it — SVG, painted with TOWARD
  2. the star — SVG, painted with TOWARD, and it glows

Wild type

No star.

Paints nothing.