helkbore

整理自:jscolor.js插件

 

this.styleElement.style.color = this.isLight() ? \'#000\' : \'#FFF\';

 

this.isLight = function () {

return (

0.213 * this.rgb[0] +

0.715 * this.rgb[1] +

0.072 * this.rgb[2] >

255 / 2

);

};

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-08-18
  • 2021-12-06
猜你喜欢
  • 2021-12-09
  • 2021-10-07
  • 2022-02-10
  • 2021-10-28
  • 2022-02-21
  • 2022-12-23
  • 2021-08-23
相关资源
相似解决方案