mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
update for darken/lighten
This commit is contained in:
parent
e9a5e27266
commit
24506def11
4
js/piskel-packaged-min.js
vendored
4
js/piskel-packaged-min.js
vendored
File diff suppressed because one or more lines are too long
@ -21004,9 +21004,6 @@ if (typeof Function.prototype.bind !== "function") {
|
||||
|
||||
var step = isSinglePass ? this.step * 2 : this.step;
|
||||
var pixelColor = frame.getPixel(col, row);
|
||||
if (pixelColor === Constants.TRANSPARENT_COLOR) {
|
||||
pixelColor = isDarken ? 'white' : 'black';
|
||||
}
|
||||
if (isDarken) {
|
||||
color = window.tinycolor.darken(pixelColor, step);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user