curtacircuitos / pcb-tools

Tools to work with PCB data (Gerber, Excellon, NC files) using Python.
Apache License 2.0
280 stars 136 forks source link

Rendering of non-rectangular outlines #217

Open cofactr-mh opened 3 years ago

cofactr-mh commented 3 years ago

Is there a way to get the area outside of the board outline to show as black, in the same way that drill holes do, instead of showing as the FR-4 background color? Currently, it seems to render the outline as a line but otherwise ignore it

lucasrevvo commented 1 year ago

The method I use is to get an inverted black image of the board outline, then use PIL to mask the rest of the render with it to make the area outside the curved outline black.