So I'm trying to get an int value to stop at a certain number for example 0% to 100%
1
final static int NUM = 500, CENT = 60; final static int LIMIT = NUM*CENT / 100; void setup() { frameRate(30); text(LIMIT, width >> 1, height >> 1); } void draw() { print(frameCount + " - "); if (frameCount >= LIMIT) exit(); }