public static XYZColor get(float x, float y) { float M1 = (-1.3515f - 1.7703f * x + 5.9114f * y) / (0.0241f + 0.2562f * x - 0.7341f * y); float M2 = (0.03f - 31.4424f * x + 30.0717f * y) / (0.0241f + 0.2562f * x - 0.7341f * y); float X = S0xyz.getX() + M1 * S1xyz.getX() + M2 * S2xyz.getX(); float Y = S0xyz.getY() + M1 * S1xyz.getY() + M2 * S2xyz.getY(); float Z = S0xyz.getZ() + M1 * S1xyz.getZ() + M2 * S2xyz.getZ(); return(new XYZColor(X, Y, Z)); }
public Color convertXYZtoRGB(XYZColor c) { return convertXYZtoRGB(c.getX(), c.getY(), c.getZ()); }
public Color convertXYZtoRGB(XYZColor c) { return(convertXYZtoRGB(c.getX(), c.getY(), c.getZ())); }