I can't get any svg from inkscape to work properly with HGridLayout and HColorPool at the same time. When I run the following code, the layout is just as expected. Things go wrong when I uncomment the following line // d.randomColors(colors);. The layout is messed up when I try to put random colors on each path of the svg.
I tried the examples and they all works as expected. I also made some svg files with illustrator and they all work well. But all those made with inkscape fails to preserve the layout while they are assigned a color.
I can't get any svg from inkscape to work properly with
HGridLayout
andHColorPool
at the same time. When I run the following code, the layout is just as expected. Things go wrong when I uncomment the following line// d.randomColors(colors);
. The layout is messed up when I try to put random colors on each path of the svg.I tried the examples and they all works as expected. I also made some svg files with illustrator and they all work well. But all those made with inkscape fails to preserve the layout while they are assigned a color.