Thanks for sharing this approach. Note that Processing already has a global frame count, frameCount. If you want to increase by n each frame, then you don’t need to store it in a global variable s if you don’t want to – the value is always equal to n*frameCount. So this is equivalent:
void draw() {
background(204);
fill(0);
textSize(30);
text(frameCount * 0.152, 200, 100);
}
Over a long time, this also avoids drift from accumulating floating point errors.