question: public static float computeDiscardAlpha ( float amount , float range ) { if ( Math . abs ( amount ) < 1.0f ) return 1.0f ; float t = amount / range ; t = MathUtils . clamp ( t , - 1.0f , 1.0f ) ; return 1.f - Math . abs ( t ) ; }
target:  Computes the alpha value of the tab based on its discard status.