Open fedarko opened 7 years ago
One thing to keep in mind for this is ensuring that the random node colors are visible against the chosen graph background color, and against the background colors of any node groups (either metanodes/bicomponents in the SPQR mode, or structural patterns in standard mode). All of these colors are now configurable, also.
I'm not really familiar with ways to do this, but I'm sure similar work has already been done. Need to do some more research.
Perhaps we could allow the user to restrict the "range" of viable random colors (through, like, 3 different "vertices" choosable through color pickers?) Or we could just not have restrictions, I suppose.
I have an implementation of this ready (for the new version, so not in the SPQR tree but for nodes in the normal graph). All that's left is setting up the UI stuff.
From @fedarko on June 9, 2017 3:12
(Kind of similar to Bandage's default behavior for coloring nodes.)
In this option, all nodes that share the same ID would be drawn with the same color. I guess we could assign nodes in root metanodes random colors, save the random color associations in a mapping, and then use that mapping when adding new nodes to the tree? Should be feasible, but dunno if it's a very high priority feature compared to some of the other things here.
And I guess if we implement this in the normal graph viewer mode also then we'd draw negative nodes as either the same color or a slightly darker/lighter color than their RC node (again, similar to Bandage's behavior).
Copied from original issue: fedarko/MetagenomeScope#213