import p5 from 'p5'
export const sketch = (p) => {
let maxSize = 500
let wspeed = 1.66
let hspeed = 1.33
let w = 0
let h = maxSize
let r = 0
// Calling p5.js functions, using the variable 'p'
p.setup = () => {
// Creating a canvas using the entire screen of the webpage
p.createCanvas(window.innerWidth, window.innerHeight)
p.strokeWeight(5)
p.background(255)
console.log('p5.js setup function executed!')
}
p.draw = () => {
// Clear the frame