I am a beginner in js, and am working on a miniproject for practice.
i have to create a web page that does a greenscreen algorithm so that it mixes two pictures: foreground image(the one with the greenscreen) and a background image(the one replacing the green pixels in the foreground image)
this is the link for the code on codepen: The code