Vision Sensor PROS C++

I am trying to program a motor to keep spinning until it detects a certain colour (Red and blue). Would I be able to have some assistance with this programming, I am using PROS C++. I am struggling with how the V5 utility connects with PROS. I can’t seem to find a way to set the colour onto the sensor and detect it.