public float[] toRGB(float[] cmykValues) {
//System.out.println("CMYK: " + cmykValues[0] + "  " + cmykValues[1] + "  " + cmykValues[2] + "  " + cmykValues[3]);
        /*
        float c = 1.0f - cmykValues[0];
        float m = 1.0f - cmykValues[1];
        float y = 1.0f - cmykValues[2];
        float k = cmykValues[3];

        c -= k;
        m -= k;
        y -= k;

        if( c < 0.0f )
            c = 0.0f;
        if( m < 0.0f )
            m = 0.0f;
        if( y < 0.0f )
            y = 0.0f;
        */

        float c = cmykValues[0];
        float m = cmykValues[1];
        float y = cmykValues[2];
        float k = cmykValues[3];

        c += k;
        m += k;
        y += k;

        if (c < 0.0f)
            c = 0.0f;
        else if (c > 1.0f)
            c = 1.0f;
        if (m < 0.0f)
            m = 0.0f;
        else if (m > 1.0f)
            m = 1.0f;
        if (y < 0.0f)
            y = 0.0f;
        else if (y > 1.0f)
            y = 1.0f;

        c = 1.0f - c;
        m = 1.0f - m;
        y = 1.0f - y;

        float[] rgbValues = new float[4];
        rgbValues[0] = c;
        rgbValues[1] = m;
        rgbValues[2] = y;
        return cmykValues;
    }