Looks#

Print#

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

Illustration of the Print block in programming, showing options for print precision, color, and cursor movement in a console.

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

Icon representing the Monitor tab for printing values and text in the Print Console of a programming environment.

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 block interface showing options for setting print precision, color, pen width, and moving cursor in Print Console.

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.

Diagram illustrating the Print block features for printing values and setting print precision in the Print Console.

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 interface for adjusting decimal places in print commands for the Print Console.

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)

Image showing the Set print precision" block used to adjust decimal places in the Print Console for VR Robot outputs.

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

Diagram illustrating the use of the Set Print Precision block for adjusting decimal places in the Print Console.

Clear all rows#

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

Illustration of the Clear all rows" block used to clear the Print Console in a programming environment.

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

Example of using the Clear All Rows block in the Print Console with sample output displayed.

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.

Icon representing the Set cursor to next row" function in the Print block for managing console output.

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

Example of setting cursor to next row in the Print Console, displaying Hello" and "World!" on separate lines.

Set print color#

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

Diagram illustrating the Set Print Color block for customizing text color in the Print Console.

Select color to print in:

  • black

  • red

  • green

  • blue

Image showing options to set print color in a programming interface for the Print Console.

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

Example of print color block settings for VEX VR, demonstrating text color adjustments in the Print Console.

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

Example of setting print color and precision in a coding environment for VR Robot's Print Console.

Set pen width#

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

Illustration of the Set Pen Width block, showing different line widths for the VR Pen: extra thin to extra wide.

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

Dropdown menu for setting pen width in a VR programming environment, showing various width options.

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.

Image showing different pen widths for the VR Pen: extra thin, thin, medium, wide, and extra wide on the playground.

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

Example of setting pen widths on the VR Pen, showing extra thin, thin, medium, wide, and extra wide lines.

Move pen#

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

Image showing the Move Pen" block for controlling the VEX VR Pen's position in programming.

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.

Image showing the Move Pen" block used to position the VEX VR Pen for drawing on the Playground.

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

Diagram illustrating the use of the Move Pen block in VEX VR programming to control pen position on the Playground.

Set pen to color#

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

Icon illustrating the Set pen to color" block for programming the VEX VR Pen's color in the Print Console.

Select the color of the line that will be drawn.

  • black

  • red

  • green

  • blue

Icon for setting the VEX VR Pen color in the Print Console, featuring color selection options.

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

Illustration of setting the pen color in a programming block for the VEX VR Robot to draw with a specified color.

Set pen color#

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

Diagram illustrating the Set Print Color block for customizing text color in the Print Console.

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.

Image showing options to set pen color, width, and print settings in a programming interface for VR Robot.

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.

Illustration of setting pen color in a programming interface for VR Robot, showcasing color selection sliders.

Fill area with color#

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

Diagram illustrating the Fill Area with Color block in programming, showcasing color selection and opacity settings.

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.

Illustration of the Fill area with color" block for coloring sections in the VEX VR Playground.

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.

Illustration of the Fill area with color block in VEX VR, demonstrating color selection and opacity settings.