double coef = Math.sin(2.0 * Math.PI * fadePos / 2.0) / 3.0; Color newColor = (coef >= 0.0) ? SubstanceColorUtilities .getLighterColor(new Color(rgba), coef) : SubstanceColorUtilities.getDarkerColor(new Color( rgba), -coef);
double coef = Math.sin(2.0 * Math.PI * fadePos / 2.0) / 3.0; Color newColor = (coef >= 0.0) ? SubstanceColorUtilities .getLighterColor(new Color(rgba), coef) : SubstanceColorUtilities.getDarkerColor(new Color( rgba), -coef);