topGradientValue, 0.6f);
topGradientValue, 1.0f);
    private void setGradientColours()    {        HSV col = new HSV(colour);         // top gradient value from HSV model.             float topGradientValue = col.getValue();            // bottom gradient value from HSV model.             float bottomGradientValue = col.getValue();            // top and bottom gradient saturation from HSV model.             float topGradientSaturation, bottomGradientSaturation;                        // if colour greyscale(achromatic) don't touch saturation            if (col.getSaturation() == 0)            {                topGradientSaturation = bottomGradientSaturation =                     col.getSaturation();                // A check to see what gives greatest increase, +0.3 or *1.3                 // and set topGradientValue to that.                topGradientValue = col.getValue()+0.3f;                if (col.getValue()*1.3f > topGradientValue)                    topGradientValue = col.getValue()*1.3f;                if (topGradientValue>1) topGradientValue = 1;                // Set bottomGradientValue to 75% of colour value.                bottomGradientValue = col.getValue()*0.75f;                  }            else            {                // We're in a colour space.                 // Increase topGradientValue to 1.5 * value of colour face.                topGradientValue = col.getValue()*1.5f;                if (topGradientValue>1) topGradientValue = 1;                topGradientSaturation = col.getSaturation()*0.6f;                bottomGradientSaturation = col.getSaturation();            }                        gradientStartHSV = new HSV(col.getHue(), topGradientSaturation,                                topGradientValue, 0.6f);            gradientStartRGB = gradientStartHSV.toColorA();                gradientEndHSV = new HSV(col.getHue(),                        bottomGradientSaturation, bottomGradientValue, 0.6f);            gradientEndRGB = gradientEndHSV.toColorA();    }