voronoi icon indicating copy to clipboard operation
voronoi copied to clipboard

Color does not export

Open Hunanbean-Collective opened this issue 1 year ago • 2 comments

The Cell Color does not export. i am not sure if i am missing something, or if this is a legitimate issue. I think the later. I have tried in 2 different Firefox based browsers and 1 chrome based.

Thanks

Hunanbean-Collective avatar Dec 03 '23 08:12 Hunanbean-Collective

I confirm, this is not intended and it would be cool that in case colors are used that they get exported as well The current logic has not been developed with that in scope and a dedicated rendering is run when exporting in order to allow segmented export to include and exclude types (seeds, cells, edges). The color randomness has also been appended separately by a community contributor @neuroradiology I see there is a param for including colors here https://github.com/WebSVG/voronoi/blob/b9f29ecc74078cfd5c036909c595f7eb7d39dce4/src/voronoi_diag.js#L400C34-L400C40

but a better approach would be to export colors that are currently visible by the users. This project is not in active development, but when I have time I'll be checking this as next improvement

wassfila avatar Dec 03 '23 09:12 wassfila

That would be great, thanks! I am using Voronoi for a Cell Bombing technique in Unreal Engine, but it uses the color information to actually do placement. so i am out of luck at the moment.

Hunanbean-Collective avatar Dec 03 '23 10:12 Hunanbean-Collective