Added gradient method in ColorHelper.java.