mcdemarco / dotgraph

A Twine 2 proofing format that renders nodes as a GraphViz (dot) graph.
http://mcdemarco.net/tools/scree/dotgraph/
MIT License
7 stars 0 forks source link

Allow user-defined coloring for tags #12

Open morbus opened 3 years ago

morbus commented 3 years ago

I'm currently mapping a story that increases a stat either a little (+), a little more (++), or a lot (+++). I tag passages as "Stat+", "Stat++", and "Stat+++". These three tags get three different colors in the default implementation. I'd like the ability to define my own colors for tags, perhaps something like "tagColors: [ {"tagone+": "#111111"}, {"tagone++": #111111"}, ... ]". This would allow me to either a) color similar tags the same color [useful in combination with #11] or b) shade similar tags in the same way ("all blue shades mean this stat will be increased. got it.").

mcdemarco commented 3 years ago

There is also a tag-colors field in StoryData, though the values are restricted by the Twine GUI and it's unclear what would happen if you used hex values there. Nevertheless, it would be handy to pick that up.

morbus commented 3 years ago

Agree. Discovered that while switching to tweego/twee3. I think that's probably the way to go here.

mcdemarco commented 2 years ago

The tag color list for Twine is here.