4
Vote

All properties (A, R, G, B) in GraphvizColor class gets color from a field

description

Code from GraphvizColor.cs:
        public byte A { get { return this.a; } }
        public byte R { get { return this.a; } }
        public byte G { get { return this.a; } }
        public byte B { get { return this.a; } }
change it to:
        public byte A { get { return this.a; } }
        public byte R { get { return this.r; } }
        public byte G { get { return this.g; } }
        public byte B { get { return this.b; } }

comments

dpatton_london wrote Feb 4, 2016 at 8:48 PM

I just got hit by this one. It's a no-brainer, any reason why it hasn't been fixed? Is anyone actively maintaining this project?

wrote Feb 5, 2016 at 9:18 AM

dpatton_london wrote Feb 5, 2016 at 9:21 AM

Another issue with this: it seems that these colors are formatted as "#RRGGBBAA" in the generated .dot file, but from what I can tell, Graphviz doesn't understand the "AA" part, so it doesn't render the color. I tweaked it to format the colors as "#RRGGBB" (as well as fixing the original bug described above) and it started working.

wrote Apr 30, 2016 at 3:05 PM

wrote Dec 27, 2016 at 8:17 AM