How to place a simple P5.JS example into Glitch?

Steps - HTML

Step 1: Import libraries

Step 2: Register a component called "canvas-updater"

Step 3: Create a new canvas

Step 4: Create a new plane to display data

Steps - sketch.js file

Step 1: Add variables. To change the size and scale of the canvas, change the values of "canvas_width", "canvas_height", and "scale"

Step 2: Store the default p5js canvas in 'p5js_canvas' variable

Step 3: Go to 'setup' function, copy and paste the lines

Step 4: Go to 'draw' function, copy and paste the lines