MarginallyClever / Makelangelo-software

Software for plotters - especially the wall-hanging polargraph also called Makelangelo.
http://www.marginallyclever.com/
GNU General Public License v2.0
342 stars 148 forks source link

7.53.0 Import #737

Closed i-make-robots closed 4 months ago

i-make-robots commented 4 months ago

There are two major changes in this update.

First, the menus are updated.

Screenshot 2024-02-08 122747 Screenshot 2024-02-08 122819 Screenshot 2024-02-08 122809 Screenshot 2024-02-08 122759

Second, Import

The File > Load works great. It always replaces the entire scene. It's like it calls "file > new" before doing an "import". Consider,

There needed to be a way to import without new. File > Import now covers that option. It will add to the existing scene. Once all the layers are loaded you can size-to-fit on the group, which guarantees alignment. If you want you can Tools > Export them as one-gcode-per-color files after that.

Screenshot 2024-02-09 143428

SVG test case provided by Discord user arniej68

Final Thought

Import revealed a bug in the color code. I had to change 361 places in code to update my color model to include an alpha channel. Here's two channels loaded. They should be 80% transparent, but they're clearly showing at 0%

Screenshot 2024-02-09 142744

Screenshot 2024-02-09 142759

I also had to rewrite the way SVG files are parsed on load. Oddly, the new way uses less code than the old, so that's probably a good thing.