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

Pass color information from SVG to driver #137

Open
kkaempf opened this issue Jan 30, 2020 · 4 comments
Open

Pass color information from SVG to driver #137

kkaempf opened this issue Jan 30, 2020 · 4 comments

Comments

@kkaempf
Copy link
Contributor

kkaempf commented Jan 30, 2020

Motivation

Some Lasercutters, like those using the Ruida controllers, have the ability to preview the laser path in a small color display.

Since VisiCut maps SVG colors to laser settings, it would be helpful to visualize the same colors in this display. Drivers like ThunderLaser currently use random colors to visually differentiate layers and their power settings.

Goal

Pass the rgb color information from the input .svg file to the LaserProperty object attached to the set of VectorCommands representing the respective svg path elements.

Drivers can then use this to enrich the laser cutter commands and display a color-correct preview in displays.

@t-oster
Copy link
Owner

t-oster commented Jan 30, 2020

Well I am not sure if this is the right approach. Visicut can map any svg property (color,layer,thickness etc) to a Laser-Profile like cut,mark cut deep or whatever you like. And the preview shows the color of the laser profile. Eg I use to draw cut in red end mark (=cut but not cut through) in black. But I can have a mapping which maps blue and green paths to cut and everything else to mark, so I would rather use the color of the Laser-Profile. The it would match the preview in visicut and it would also work if I have a layer for cut and another layer for mark.

@kkaempf
Copy link
Contributor Author

kkaempf commented Jan 30, 2020

it would match the preview in visicut

👍

@mgmax
Copy link
Collaborator

mgmax commented Jan 30, 2020

However, the profiles in VisiCut don't have a preview color. There are three colors per material: engrave, cut and background. Line profiles can be switched between the cutting color ("cut through") and the engrave color ("engrave line").

@t-oster
Copy link
Owner

t-oster commented Jan 30, 2020

@mgmax you are right... I should use my own program more often....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants