You can insert frameCount in the middle of the filename:
if (q > 5) get(800, 800, 600, 600).save("img." + frameCount + ".png");
You can insert frameCount in the middle of the filename:
if (q > 5) get(800, 800, 600, 600).save("img." + frameCount + ".png");