and here is how to set a color code using two signatures.
pretty much the same code used.
int main() {
// Draw an area representing the vision sensor field of view
Brain.Screen.clearScreen( vex::color::black );
Brain.Screen.setPenColor( vex::color::green );
Brain.Screen.drawRectangle( screen_origin_x-1, screen_origin_y-1, screen_width+2, screen_height+2 );
while(1) {
// request any objects with color code C1
int numberObjects = Vision1.takeSnapshot( C1 );
Brain.Screen.setPenColor( vex::color::white );
Brain.Screen.setFont( mono20 );
Brain.Screen.setCursor( 2, 2 );
Brain.Screen.print( "CC 1 %2d", (int)numberObjects );
// draw any objects found
drawObjects( Vision1, vex::color::green, true );
// run 10 times/second
this_thread::sleep_for(100);
}
}
and a screen grab
