mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 14:08:59 +08:00
Invert SVG colors for DLP printing. #380
This commit is contained in:
parent
ce6b4aeaee
commit
181f750618
@ -310,7 +310,7 @@ EOF
|
|||||||
my ($polygon, $type) = @_;
|
my ($polygon, $type) = @_;
|
||||||
printf $fh qq{ <polygon slic3r:type="%s" points="%s" style="fill: %s" />\n},
|
printf $fh qq{ <polygon slic3r:type="%s" points="%s" style="fill: %s" />\n},
|
||||||
$type, (join ' ', map { join ',', map unscale $_, @$_ } @$polygon),
|
$type, (join ' ', map { join ',', map unscale $_, @$_ } @$polygon),
|
||||||
($type eq 'contour' ? 'black' : 'white');
|
($type eq 'contour' ? 'white' : 'black');
|
||||||
};
|
};
|
||||||
|
|
||||||
for my $layer_id (0..$self->layer_count-1) {
|
for my $layer_id (0..$self->layer_count-1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user