Looks#

Print#

The Print block is used to print values or text in the Print Console.

print_block

The Print block will print data within the Monitor Window tab.

monitor_tab_icon

All reporter blocks will be printed as integer (whole) numbers by default. Use the Set print precision block to adjust the number of decimal places printed.

By default, the Print block will remain on the same row for any subsequent print commands. By expanding the Print block to show and set cursor to next row, this will move the cursor to the next row after printing.

print_expanded

Any block that returns a value can be used in the Print block.

In this example, the VR Robot’s starting Y Position is printed to the Print Console before moving the cursor to the next line.

print_example

Set print precision#

The Set print precision block is used to set the number of digits that appear after the decimal point when using print blocks to print variables and values to the Print Console.

set_print_precision_block

Choose the level of precision that inserted reporter blocks will be printed to the screen.

  • Ones (1) (Default)

  • Tenths (0.1)

  • Hundredths (0.01)

  • Thousandths (0.001)

  • All Digits (0.000001)

set_print_precision_select

In this example, the print precision is set to hundredths before printing the VR Robot’s current drive rotation.

set_print_precision_example

Clear all rows#

The Clear all rows block is used to clear all the rows in the Print Console.

clear_all_rows_block

In this example, “Project has started.” will print to the Print Console and then be cleared after 5 seconds.

clear_all_rows_example

Set cursor to next row#

The Set cursor to next row block is used to set the cursor to a new line in the Print Console when using the print blocks.

set_cursor_new_row_block

In this example, the code will print “Hello” and on the next line in the display it will print “World!”

set_cursor_new_row_example

Set print color#

The Set print color block is used to set the color of text printed to the Print Console.

set_print_color_block

Select color to print in:

  • black

  • red

  • green

  • blue

set_print_color_select

In this example, the code will print “Hello” in the color red.

set_print_color_block_example

Any Print block used after the Set print color block will print in the color most recently set within the program.

set_print_color_text_example

Set pen width#

The Set pen width block is used to set the width of the line the VR Pen will draw.

set_pen_width_block

Select which width to set the VR pen to. By default, the VR pen is set to thin.

set_pen_width_select

This is an example of what the different widths look like on the playground. From left to right, this shows extra thin, thin, medium, wide, and extra wide.

set_pen_width_widths

In this example, the VR Pen’s width is set to “extra wide” before drawing a 400 Millimeter line.

set_pen_width_example

Move pen#

The Move pen block is used to set the position of the VEX VR Pen.

move_pen_block

Select the position of the VR pen:

  • up - the pen will not draw a line on the board.

  • down - the pen will draw a colored line on the board.

move_pen_select

In this example, the VR Pen drops and draws a line across the Playground.

move_pen_example

Set pen to color#

The Set pen to color block is used to set the color of the VEX VR Pen.

set_pen_to_color_block

Select the color of the line that will be drawn.

  • black

  • red

  • green

  • blue

set_pen_to_color_select

In this example, the pen color will be set to green and then draw a line.

set_pen_to_color_example

Set pen color#

The Set pen color block is used to set the color of the VEX VR Pen with a specified color.

set_pen_color_block

Using the sliders, select the red, green, and blue values for the color you want to create. The numeric value will be listed next to the color (0 to 255).

Opacity describes the transparency of the color. The opacity of the pen color can be selected using the bottom slider.

set_pen_color_select

The color window will update to show the final color the pen will draw on the Playground and the color will also appear at the top of the pen on the VR Robot once the project is run.

In this example, the color has been set to pink before the VR Robot draws a line.

set_pen_color_example

Fill area with color#

The Fill area with color block is used to fill an area of the Playground with a specified color.

fill_area_block

Using the sliders, select the red, green, and blue values for the color you want to create. The numeric value will be listed next to the color (0 to 255).

Opacity describes the transparency of the color. The opacity of the pen color can be selected using the bottom slider.

fill_area_select

The color window will update to show the final color the pen will draw on the Playground.

In this example, the bottom of the playground will be filled with the color orange.

fill_area_example