ofGetColor member function?

Hi there,

I noticed that openFrameworks’ default graphics member functions have a handy ofSetColor. Is there some ofGetColor member function that will return the current color? I’d like to remember the current color, switch colors and draw something, and then revert back to the original color.

Thanks!

ofGetStyle().color will return the current color. You can also use ofPushStyle()/ofPopStyle() to temporarily store all the style variables and recover them later with pop