nadavrot / layout

Layout is a rust library and a tool that renders Graphviz dot files.
MIT License
656 stars 39 forks source link

Color parsing is incorrect for rgba hexes #32

Closed epsilon-phase closed 1 month ago

epsilon-phase commented 1 month ago

Hi, I've been writing an application with egui that uses this to layout a graph.

So far most everything is pretty easy to work with, however, your color parsing code handles rgba incorrectly.

Specifically, if I have a color #191d1dff, it gets turned into #1d1dffff because it gets extended with full opacity

nadavrot commented 1 month ago

Thank you for fixing the issue!