Open Yetispapa opened 3 years ago
I'm having a similar problem, I cannot get to loadImage
to work at all.
I've tried it in the preload
and in the setup
functions, both with a relative and absolute paths, and i can't get anything to work
I can load a canvas
image fine directly, but can't load a p5types.Image
. I don't think i can cast the Image
to the p5Types.Image
either
Looks like we are not able to use the loadImage
function as it uses Request
which is an interface of the Fetch API.
Hi @Flam3rboy,
I got an exception on p.loadImage in my setup function
code what i'm calling:
let texture = p.loadImage( './assets/my-texture.png');
exception with according file:
Can you give me an advice how to proceed here or is there something wrong in the code?
Thank you in advance