shader
test_transformc_v_space_u_color (output color Cout = 0)
{
    // Quantize val to avoid disagreements between scalar & SIMD as it approaches 0
   float  valr = 1.0/(2*raytype("camera"));
    float  valg = 1.0/(3*raytype("camera"));
    float  valb = 1.0/(4*raytype("camera"));
    float val2r = valr/2;
    float val2g = valg/2;
    float val2b = valb/2;
    
    // stdosl.h didn't implement xyY
    string colorspaces[6] = { "rgb", "RGB", "hsv", "hsl", "YIQ", "XYZ" /*,"xyY"*/ };
    string colorspace = colorspaces[int(P[0]*32)%6];
    
    color c1 = color(valr, valg, valb);
    color c2 = color(val2r, val2g, val2b);
    
    Cout = transformc(colorspace, c1);
    if (int(P[0]*32)%2==0) {
        Cout = transformc(colorspace, c2);
    }
}
