observablehq / graphviz

A convenience method for using Graphviz.
https://beta.observablehq.com/@mbostock/graphviz
Other
39 stars 8 forks source link

lightgreen fill of a node will resolve as a black RGB values #8

Open disleyland opened 1 week ago

disleyland commented 1 week ago

seems to be a bug in converting some color names into RGB values. lightgreen for instance.

dot`digraph { rankdir = RL; x [style=filled, color=lightgreen] ; x -> y -> z; }`

not a problem with the actual Graphviz library but this port. :(

mbostock commented 1 week ago

For what it’s worth, this isn’t reproducible in Framework, which automatically uses the latest version of @viz-js/viz.

Image

disleyland commented 1 week ago

Turns out it one of chstgpts goto colours when it generates diagrams which is how i stumbled onto this!