How shall I make get(mouseX, mouseY)) return RGB triplets

Tried to see pixels color using
void mousePressed() { println(get(mouseX, mouseY));}
It returns -1 for white spots, close to -16581375 on black spots and in between for the rest.
How shall I get it as RGB triplets?

1 Like

Processing.org/reference/hex_.html
Processing.org/reference/color_datatype.html

1 Like

This is great! Thanks a lot for that qwick reply