How is the color for each story chosen, and (where) is this saved by Twine? What code creates this svg?
I am interested in changing the color and styling of the maps – I’m working with importing and exporting large collections of works (40+) and want to use techniques such as more color options to help make them visually distinct.
The color of the bubbles is decided based on the first letter of the story name, which will determine which of the four colors get used for the bubbles. (A… = green, B… = cyan, C… = purple, D… = red, E… = green, F… = cyan, etc…)
The color isn’t “saved by Twine”, it simply uses the first letter every time.
You can see the code which generates those previews in the Twine source here and in the “item-preview” subdirectory below that (the former code selects the hue, the latter generates the preview using that hue).
Argh. That would be a long-standing bug. The intention was to sum the Unicode values of all characters in the name modulo 40, then multiply that value by 90 to spread it, in theory, across possible hue values in HSV notation. Which is obviously written incorrectly now that you point it out.