mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix : do not apply lighten if transparent
This commit is contained in:
parent
b0318c8b11
commit
d8772bdd8d
@ -39,9 +39,6 @@
|
|||||||
|
|
||||||
var step = isSinglePass ? this.step * 2 : this.step;
|
var step = isSinglePass ? this.step * 2 : this.step;
|
||||||
var pixelColor = frame.getPixel(col, row);
|
var pixelColor = frame.getPixel(col, row);
|
||||||
if (pixelColor === Constants.TRANSPARENT_COLOR) {
|
|
||||||
pixelColor = isDarken ? 'white' : 'black';
|
|
||||||
}
|
|
||||||
if (isDarken) {
|
if (isDarken) {
|
||||||
color = window.tinycolor.darken(pixelColor, step);
|
color = window.tinycolor.darken(pixelColor, step);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user