ofColor RGB component return types?

Hi, I have an ofColor object, and I would like to get the RGB components out of it, but for some reason when I print out color.r, I get weird characters instead of the 0-255 range I expect to see.

For example:
gives me: random characters [ w /221, etc. (Are these the byte values?)

on the other hand,
give me: 91, 98, 43, 255 - the RGBA values, as expected.

How can I get the RGB values from my ofColor object as 0-255 range?

the components of ofColor are unsigned char so when printing them out c++ interprets them as a character. to see the number you can just cast them to int as in:

cout << (int)color.r << endl;

Ah I see, thanks Arturo!