for (int i = 0; i < nOperands; i++) {
c[i] = ((PdfNumber)operands.get(i)).floatValue();
}
switch (nOperands) {
case 1:
return new GrayColor(c[0]);
case 3:
return new BaseColor(c[0], c[1], c[2]);
case 4:
return new CMYKColor(c[0], c[1], c[2], c[3]);
}