Ask coding questions

← Back to all posts
Upload an image
The3rdIcon (0)

I wanted to know if there is a way to upload an image and how to reference it in my code considering this isn't like running the code on a PC. I'm going to use the referenced code to count the number of white pixels and then count the number of pixels overall to help me calculate the percentage of pixels that of white.

eankeen (1407)

hey! 😜

so if you have some image on your computer, you can drag that file and drop it into the editor (specifically, drag it on top of the area marked with the red rectangle below). after a few seconds the file should show up

hope i was able to help :)

The3rdIcon (0)

@eankeen , Thanks I was able to figure this out.