guy 8 years ago
parent
commit
26f98182c3
  1. 4
      bi/core.js
  2. 4
      dist/core.js
  3. 4
      src/core/func/function.js

4
bi/core.js

@ -17112,8 +17112,8 @@ $(function () {
return false;
}
var rgb = this.rgb2json(this.hex2rgb(hex));
var grayLevel = (rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114);
if (grayLevel < 192) {
var grayLevel = Math.round(rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114);
if (grayLevel < 140) {
return true;
}
return false;

4
dist/core.js vendored

@ -22736,8 +22736,8 @@ $(function () {
return false;
}
var rgb = this.rgb2json(this.hex2rgb(hex));
var grayLevel = (rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114);
if (grayLevel < 192) {
var grayLevel = Math.round(rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114);
if (grayLevel < 140) {
return true;
}
return false;

4
src/core/func/function.js

@ -187,8 +187,8 @@ $(function () {
return false;
}
var rgb = this.rgb2json(this.hex2rgb(hex));
var grayLevel = (rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114);
if (grayLevel < 192) {
var grayLevel = Math.round(rgb.r * 0.299 + rgb.g * 0.587 + rgb.b * 0.114);
if (grayLevel < 140) {
return true;
}
return false;

Loading…
Cancel
Save