Change in text colour according to background



  • Used flame http://www.kennethcachia.com/background-check/ to change the colour of the text according to the background. I'm doing it on instructions, I'm putting the flames on, and I'

    document.addEventListener('DOMContentLoaded', function () {
      BackgroundCheck.init({
        targets: 'a'
      });
    });
    

    I'm adding the right classes to the sss, but there's a mistake in the console.

    Failed to execute 'getImageData' on 'CanvasRenderingContext2D' canvas has been tainted by cross-origin data.

    What's the matter? How do you fix that? Thank you.



  • work on the server is either required, not locally. addition of attribut is also a solution to this problem. crossDomain = "anonymous" Your HTML image or using JS: img.crossOrigin = "Anonymous";




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2