<commit_before>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);
	}
	
}<commit_msg>Fix for PDF rendering mode<commit_after>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);
	}
	
}
{'fraction_non_alphanumeric': 0.10658771280532939, 'fraction_numerical': 0.0, 'mean_word_length': 4.007407407407407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4732958', 'n_tokens_mistral': 478, 'n_tokens_neox': 430, 'n_words': 110}