void onRenderTick(float partialTicks) {
if (!client.getScreen().isEmpty()) {
return;
}
render.text("FPS:", 15, 15, 1, Color.orange.getRGB(), true);
render.text(String.valueOf(client.getFPS()), 38, 15, 1, getChroma(2), true);
}
int getChroma(long speed) {
float hue = client.time() % (15000L / speed) / (15000f / speed);
return Color.getHSBColor(hue, 1f, 1f).getRGB();
}