public HSBColor getComplementaryColor() {
        double[] rgb = HSBColor.getRGB(hue, saturation, brightness);
        double[] hsb = HSBColor.getHSB(1.0 - rgb[0], 1.0 - rgb[1], 1.0 - rgb[2]);
        return new HSBColor(hsb[0], hsb[1], hsb[2]);
    }
public HSBColor getComplementaryColor ( ) { double [ ] rgb = HSBColor . getRGB ( hue , saturation , brightness ) ; double [ ] hsb = HSBColor . getHSB ( 1.0 - rgb [ 0 ] , 1.0 - rgb [ 1 ] , 1.0 - rgb [ 2 ] ) ; return new HSBColor ( hsb [ 0 ] , hsb [ 1 ] , hsb [ 2 ] ) ; }
Returns a Color object that shows a complementary color.

@return a complementary Color object.