switch polish from line segments to polys

This commit is contained in:
Stewart Allen 2020-03-04 21:47:05 -05:00
commit 3a715a24fe
3 changed files with 62 additions and 43 deletions

View file

@ -549,7 +549,12 @@ var gs_kiri_slice = exports;
layer = layers.trace;
break;
}
if (top.traces) layer.poly(top.traces, trace_color, true, null);
if (top.traces) {
layer.poly(top.traces, trace_color, true, null);
}
if (top.polish) {
layer.poly(top.polish, 0x880000, true, null);
}
});
layer.render();
@ -618,8 +623,9 @@ var gs_kiri_slice = exports;
layer.clear();
this.tops.forEach(function(top) {
if (top.fill_lines) layer.lines(top.fill_lines, fill_color);
if (top.polish) layer.lines(top.polish, 0x880000);
if (top.fill_lines) {
layer.lines(top.fill_lines, fill_color);
}
});
layer.render();