ofSetColor() messing with ofxOMXPlayer video display


#1

How do I modify the color of one thing using ofSetColor() without causing problems to the video display? As of right now, I am using ofSetColor() to edit the color of one thing but then whenever I trigger the button that displays my video the whole screen just goes the same color as what I set in ofSetColor(). I have tried using ofNoFill() but still same problem


#2

Figured it out, putting ofSetColor(255, 255, 255) right before I draw my video onto the screen with .draw() fixed it


#3

Hello,
You can try

ofPushStyle();
//apply style
//draw styled things
ofPopStyle();

see here:
https://openframeworks.cc//documentation/graphics/ofGraphics/#!show_ofPushStyle