if you would ever be so inclined, could someone please show me the correct way to load images using a url as the path. It accepts urls and returns this error so i do not know what i am doing wrong.
TypeError: Failed to execute ‘texImage2D’ on ‘WebGLRenderingContext’: Overload resolution failed.
actually you are also not loading an image by that url you are using.
try this…
let pic;
function setup() {
createCanvas(500, 500, WEBGL);
pic = loadImage('https://i.imgur.com/9am48.png'); // real url of the image ...
}
function draw() {
background(205, 102, 94);
texture(pic);
rect(-width/2,-height/2,width,height);
}