private void generateBackground(float delta) { // float x = Time.getTime() * backgroundColorSpeed; backgroundColor.r = MathUtils.sin(Time.getTime() * backgroundColorSpeed * 0.8f) * 0.1f + 0.7f; backgroundColor.g = MathUtils.sin(Time.getTime() * backgroundColorSpeed * 0.7f) * 0.1f + 0.7f; backgroundColor.b = MathUtils.sin(Time.getTime() * backgroundColorSpeed * 0.9f) * 0.1f + 0.56f; Gdx.app.log("LOG", String.valueOf(backgroundColor.r)); }