package com.haxademic.core.render;

import com.haxademic.core.app.P;

public class AnimationLoop {

	protected float frames;
	protected float progress;
	protected float progressRads;
	
	public AnimationLoop(float frames) {
		this.frames = frames;
	}
	
	public float frames() {
		return frames;
	}
	
	public float progress() {
		return progress;
	}
	
	public float progressRads() {
		return progressRads;
	}
	
	public void update() {
		float loopFrames = (float) P.p.frameCount % frames;
		progress = loopFrames / frames;
		progressRads = progress * P.TWO_PI;
		P.p.debugView.setValue("AnimationLoop.progress()", progress);
	}
	
}

package com.haxademic.core.render;

import com.haxademic.core.app.P;

public class AnimationLoop {

	protected float frames;
	protected float progress;
	protected float progressRads;
	
	public AnimationLoop(float frames) {
		this.frames = frames;
	}
	
	public float frames() {
		return frames;
	}
	
	public float progress() {
		return progress;
	}
	
	public float progressRads() {
		return progressRads;
	}
	
	public void update() {
		float loopFrames = (float) P.p.frameCount % frames;
		progress = loopFrames / frames;
		progressRads = progress * P.TWO_PI;
		if(P.p.debugView != null) P.p.debugView.setValue("AnimationLoop.progress()", progress);
	}
	
}

Fix for PDF rendering mode
Fix for PDF rendering mode
