Someone help me putting an image in the sketch files

i tried to create an image and load it but it didn’t work, someone explain to me how i can put an image and load it in my project?

you have to make a data folder inside of the sketch folder, and put your image inside. then do loadImage(“imageName”.png), and you’ll be good to go!

5 Likes

some extra information;
You can use loadImage("data/<sub-folder1>/<sub-folder2>/img.png");
this way you can organise the files. As far as I am aware of, there is no limit to the number of folders.

1 Like