private RgbaColor withHsl(int index, float value) {
        float[] HSL = convertToHsl();
        HSL[index] = value;
        return RgbaColor.fromHsl(HSL);
    }
private RgbaColor withHsl ( int index , float value ) { float [ ] HSL = convertToHsl ( ) ; HSL [ index ] = value ; return RgbaColor . fromHsl ( HSL ) ; }
Returns a new color with a new value of the specified HSL
component.