'img cannot be resolved to a variable'

Maybe you forgot to say PImage img; previous to setup() or to load img in setup with loadImage()

2 Likes