// ----------------DRAW--------------------------------- public void draw() { if (currentDigit < 0) return; GenericText gText = (GenericText) digits.get(currentDigit); if (gText.doneAnimating()) { currentDigit -= 1; if (currentDigit < 0) { return; } else { gText = (GenericText) digits.get(currentDigit); } } gText.update(); gText.display(); }
public void update() { super.update(); if (frameNum == 60 * 5) { doneAnimating = true; } else { noiseTimer += 0.03f; } }
public void update() { super.update(); if (frameNum == 60 * 5) { doneAnimating = true; } else if (frameNum % 20 == 0) { randomSeed((int) random(1000)); } }
public void update() { super.update(); if (n > 200) { n *= -1; } else if (n == -1) { doneAnimating = true; } else { n++; } }
public void update() { super.update(); if (frameNum == 60 * 5) doneAnimating = true; }