V5 Screen Drawing

Is there any way to use custom colors (either RGB or Hex codes) in VEXcode?

Yeah look at this thread I made. Jpearman gave a great answer.


I have been using

 vex::color c = vex::color( 0, 30, 200 );
 Brain.Screen.setFillColor( c );
 Brain.Screen.drawRectangle( 130, 10, 30, 40 );

I think that uses something similar to rgb

1 Like

Thanks! I couldn’t seem to find a good answer to that.

Also, is it possible to make a rectangle that is filled in as opposed to an outline?

Yeah you set the fill color with the brain


put color in the parentheses

1 Like