Interesting, As far as i know, Processing does not support CMYK color profile yet. Have you tried adjusting your ‘fill’ parameters? For example i’m using @kll example. What about other examples that came with the processing software? Are you seeing the same problem?
float radius = 200.0;
import processing.pdf.*;
void setup () {
size(500, 500);
//noLoop();
beginRecord(PDF, "filename.pdf");
background( 255);
}
void draw () {
noStroke();
//background(100, 100, 255);
fill(int(random(25,255)), 0, int(random(0,255)));
radius = random(200.0);
ellipse(width/2, height/2, radius, radius);
delay(100);
}
void keyPressed() {
if (key == 'q') {
endRecord();
exit();
}
}
and my pdf is exported the same way as my sketch. It could be an issue with your display. if you want, you can post your code just to be sure.