is there a way of getting the actual color set with ofSetColor?
something like ofGetBackgroundColor but for foreground.
Not completely sure. but i think that will do:
ofStyle currentStyle; currentStyle = ofGetStyle(); ofLogNotice() << currentStyle.color;
Hey @Jordi thanks for the quick answer. Yeah ofGetStyle().color should work. Thing is it didnt work inside an ofx addon.
It would be great to have a global function ofGetSetColor or something.
you should be able to call ofGetStyle().color as long as you #include ofMain.h in the addon you want to call it.
ofMain.h is added but I think there is a local context for ofSetColor, inside the addon.