GVCOLOR(1)
π GVCOLOR β the flow-colors-through-a-ranked-digraph girlie π
okay bestie, so this is gvcolor from the General Commands Manual section (that's section 1, the "run me in your shell" section, iykyk). She's a filter, she's iconic, she's been around since 2001 and she still ate. let's get into it π
β¨ NAME β¨
gvcolor β flow colors through a ranked digraph π
πΈ SYNOPSIS πΈ
gvcolor [ files ]
π USAGE π
dot file.gv | gvcolor | dot -T<format>
that's the whole vibe. pipe in, pipe out, no cap.
π¦ DESCRIPTION π¦
So gvcolor (she used to go by colorize back in the day, glow-up era) is a filter that sets node colors from initial seed values. Colors flow along edges from tail to head, and at each node they get averaged β as HSB vectors, because she's precise like that.
β οΈ the graph must have already been processed by dot first. she's not doing that part for you, babe.
The way it works: pick your initial colors right and you get drawings where node colors help emphasize logical relationships between nodes β even when those nodes are spread far apart in the layout. like, they're still matching, they still found each other, main character energy fr fr π«Ά
Initial colors must be set externally, using the color attribute of a node. The classic move is to assign colors to a few key source or sink nodes, manually setting their colors by editing the graph file. Color names are as in dot(1): symbolic names or RGB triples. π
It is best to choose some easilyβdistinguished but related colors β not necessarily spaced evenly around the color wheel. For example, blue_green, green, and light_yellow looks better than red, green, blue. (yes, that's the actual tea from the manual, and she's right, the related palette ate π)
Certain graph attributes control the gvcolor algorithm:
flow=backβ reverses the flow of colors from heads to tails πsaturation=.1,.9(or any two numbers between0and1) β adjusts the color saturation linearly from least to greatest rank π¨Defcolorβ if this is set, this color value is applied to any node not otherwise colored π
π EXIT STATUS π
The following exit values are returned:
0β Successful completion. slay β¨1β If nodes of the graph do not possess a ``pos'' attribute. π
π BUGS π
It would be nice to make the program work without relying on an initial pass through dot. (she said what she said, bestie, that's the note π)
π AUTHORS π
- Stephen C. North
<north@research.att.com> - Emden R. Gansner
<erg@research.att.com>
β SEE ALSO β
gc(1), dot(1), gvpr(1), ccomps(1), sccmap(1), tred(1), libgraph(3)
and that's the whole page bestie β brought to you by the 21 March 2001 edition of the GVCOLOR(1) manual page, version one, still serving looks πβ¨π
π¦ where this page comes from
- alpine 3.22: graphviz-doc 12.2.1-r0 Β· EPL-1.0
- alpine 3.23: graphviz-doc 12.2.1-r0 Β· EPL-1.0
- alpine 3.24: graphviz-doc 12.2.1-r3 Β· EPL-1.0
- arch rolling: graphviz 16.1.0-2 Β· EPL
- centos-stream 10: graphviz 9.0.0-15.el10 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- centos-stream 9: graphviz 2.44.0-26.el9 Β· EPL-1.0
- centos-stream 9: graphviz 2.44.0-26.el9 Β· EPL-1.0
- debian bookworm: graphviz 2.42.2-7+deb12u1 Β· EPL-1.0
- debian trixie: graphviz 2.42.4-3 Β· EPL-1.0
- fedora 43: graphviz 13.1.1-3.fc43 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 43: graphviz 13.1.1-3.fc43 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 43: graphviz 13.1.2-3.fc43 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 43: graphviz 13.1.2-3.fc43 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.2-2.fc44 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.2-2.fc44 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.4-2.fc44 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- fedora 44: graphviz 14.1.4-2.fc44 Β· epl-1.0 AND cpl-1.0 AND bsd-3-clause AND mit AND gpl-3.0-or-later WITH bison-exception-2.2 AND apache-1.1 AND lgpl-2.0-or-later WITH libtool-exception AND smlnj AND hpnd-uc
- nixos 26.05: graphviz 12.2.1
- nixpkgs unstable: graphviz 15.1.1
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 Β· EPL-1.0
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 Β· EPL-1.0
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 Β· EPL-1.0
- opensuse-leap 16.0: graphviz 12.2.1-160000.1.1 Β· EPL-1.0
- ubuntu jammy: graphviz 2.42.2-6 Β· EPL-1.0
- ubuntu jammy: graphviz 2.42.2-6ubuntu0.1 Β· EPL-1.0
- ubuntu noble: graphviz 2.42.2-9build1 Β· EPL-1.0
- ubuntu noble: graphviz 2.42.2-9ubuntu0.1 Β· EPL-1.0
- ubuntu questing: graphviz 2.42.4-3build2
- ubuntu resolute: graphviz-tools 14.1.2-1ubuntu1 Β· EPL-1.0
- ubuntu stonking: graphviz-tools 14.1.2-1ubuntu2 Β· EPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms