Code example for Transformation

Methods: setAlpha

0
	} 
 
	@Override 
	protected void applyTransformation(float interpolatedTime, Transformation t) {
		float period = interpolatedTime * totalBlinks * 3.14f + (finishOff ? 3.14f / 2 : 0);
		t.setAlpha(Math.abs(FloatMath.cos(period)));
	} 
 
	@Override 
	public boolean willChangeBounds() { 
		return false; 
	} 
 
	@Override 
	public boolean willChangeTransformationMatrix() { 
		return false; 
	} 
}