Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix. If the color defined in the entity is 256, the color used should be the one defined in the layer #104

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

rafaelgc
Copy link
Contributor

@rafaelgc rafaelgc commented Aug 3, 2022

256 is a special value to say that the color used should be the one defined in the layer.

I've experienced this problem with a DXF file that has red entity (it's rendered red in LibreCAD) but it was rendered in a different color when it was exported to SVG using this library.

train_with_red_entities.zip

Discussion about colors defined in the entity: [https://groups.google.com/g/comp.cad.autocad/c/onnSe9gdaV8/m/Nm-s-e2WuNEJ](https://groups.google.com/g/comp.cad.autocad/c/onnSe9gdaV8/m/Nm-s-e2WuNEJ

…ned in the entity instead of the layer, unless the color is 256. 256 is a special value to say that the entity has to use the color defined in the layer.
@skymakerolof
Copy link
Owner

Thank you, looks good!

@skymakerolof skymakerolof merged commit 80e9fa1 into skymakerolof:develop Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants