glejeune / Ruby-Graphviz

[MIRROR] Ruby interface to the GraphViz graphing tool
https://gitlab.com/glejeune/ruby-graphviz
Other
608 stars 116 forks source link

RGB color list - supported? #70

Closed lenntt closed 10 years ago

lenntt commented 11 years ago

Hi

I was experimenting a bit with colors and colorlist and was wondering if it is possible to define a color list using rgb colors??

e.g.:

node[:color] = "red:white"  # works
node[:color] = "#FF0000:#FFFFFF"  # raises error
node[:color] = "#FFFFFF:FFFFFF"  # raises error

I think according to the documentation of colorlist, the second one should work. Did I misinterpreted the docs (http://www.graphviz.org/doc/info/attrs.html#k:colorlist) or is it not yet supported/bug in ruby-graphviz?

glejeune commented 10 years ago

Works (see sample72)