Glitch in JS and a canvas size issue

Hey guys, so I found this great glitch effect https://codepen.io/Blummed/pen/lCjiu and I want to use it on our new portfolio but I can’t adjust the code to:

  1. Get exact size of canvas element (about 400x350)
  2. Put a retina image inside (when I put twice a size file it just gets bigger)

http://airnauts.webflow.io

1 Like