Pantalla#
Introducción#
The Screen category includes blocks that allow your IQ (2nd gen) Brain’s Screen to display text, values, and graphics on the brain’s built-in screen. These blocks can be used to print sensor data, create custom interfaces, or draw visual elements like lines, shapes, and text with adjustable styles and colors.
Below is a list of all blocks:
Print — Display text and values on the brain.
print on screen — Prints a value or text to the selected screen.
set cursor to row column on screen — Sets the row and column location for printing.
set cursor to next row on screen — Moves the cursor to the next row.
clear row on screen — Clears a specific row.
cursor column — Returns the current cursor column number.
cursor row — Returns the current cursor row number.
Settings — Configure screen display properties.
clear screen — Clears the entire screen.
set font on screen — Sets the font style and size for printed text.
set print precision on screen — Sets how many decimal places to show.
set pen width on screen — Sets the line thickness for drawings.
set pen / font color on screen — Sets the color used for outlines and text.
set fill color on screen — Sets the fill color for drawn shapes.
Draw — Create shapes and graphics on the brain’s screen.
draw pixel on screen — Draws a single pixel at a coordinate.
draw line on screen — Draws a line between two points.
draw rectangle on screen — Draws a rectangle.
draw circle on screen — Draws a circle.
Imprimir#
print on screen#
The print on screen block displays text on the brain’s screen at the current cursor position and font.
imprimir [VEXcode] en la pantalla ▶
Parámetros |
Descripción |
|---|---|
valor |
El texto, número o valor de variable que se mostrará. |
flecha expansiva |
Expand the block to read and set cursor to next row to make the cursor move to the next row after this block. |
Ejemplo
cuando empezó
[Display a message at the starting cursor position.]
imprimir [Hello, Robot!] en la pantalla ◀ y coloque el cursor en la siguiente fila

set cursor to row column on screen#
When using the set cursor to row column on screen block, the cursor is placed at a specific row and column on the brain’s screen. How many rows and columns can comfortably fit depends on the selected font.
Monospaced fonts have characters that are all the same width, making text placement consistent. In contrast, proportional fonts vary in character width, so some letters take up more space than others. However, regardless of which type is used, the set cursor to row column on screen block positions the cursor based on row and column size, not font style. The font size can be adjusted using the set font on screen block.
Coloque el cursor en la fila [1] columna [1] en la pantalla
Parámetros |
Descripción |
|---|---|
fila |
The row of the cursor as an integer. |
columna |
The column of the cursor as an integer. |
Ejemplo
cuando empezó
[Repeatedly print the current timer at Row 1 Column 1]
para siempre
imprimir (temporizador en segundos) en la pantalla ◀ y coloque el cursor en la siguiente fila
esperar (1) segundos
pantalla clara
Coloque el cursor en la fila (1) columna (1) en la pantalla

set cursor to next row on screen#
The set cursor to next row on screen block moves the cursor to column 1 on the next row on the brain’s screen.
Colocar el cursor en la siguiente fila de la pantalla
Parámetros |
Descripción |
|---|---|
This block has no parameters. |
Ejemplo
cuando empezó
[Display two lines of text.]
imprimir [Line 1] en la pantalla ▶
Colocar el cursor en la siguiente fila de la pantalla
imprimir [Line 2] en la pantalla ◀ y coloque el cursor en la siguiente fila

clear row on screen#
The clear row on screen block is used to clear a single row on the brain’s screen.
Limpiar la fila (1) de la pantalla
Parámetros |
Descripción |
|---|---|
fila |
The row number to clear as an integer. |
Ejemplo
cuando empezó
[Display text on two rows, but only keep one.]
imprimir [This text stays] en la pantalla ◀ y coloque el cursor en la siguiente fila
imprimir [This disappears] en la pantalla ◀ y coloque el cursor en la siguiente fila
esperar (3) segundos
Limpiar la fila (2) de la pantalla
columna del cursor#
El bloque columna del cursor devuelve el número de columna donde se imprimirá el texto como un entero.
(columna del cursor)
Parámetros |
Descripción |
|---|---|
This block has no parameters. |
Ejemplo
cuando empezó
[Display the cursor's current column.]
Coloque el cursor en la fila [3] columna [2] en la pantalla
imprimir (columna del cursor) en la pantalla ▶
fila del cursor#
El bloque fila del cursor devuelve el número de fila donde se imprimirá el texto como un entero.
(fila del cursor)
Parámetros |
Descripción |
|---|---|
This block has no parameters. |
Ejemplo
cuando empezó
[Display the cursor's current row.]
Coloque el cursor en la fila [3] columna [2] en la pantalla
imprimir (fila del cursor) en la pantalla ▶
Ajustes#
pantalla clara#
The clear screen block clears all text and drawings from the brain’s screen.
pantalla clara
Parámetros |
Descripción |
|---|---|
This block has no parameters. |
Ejemplo
cuando empezó
[Fill the screen, then clear it after 2 seconds.]
repetir (5)
imprimir [Line] en la pantalla ◀ y coloque el cursor en la siguiente fila
fin
esperar (3) segundos
pantalla clara
set font on screen#
The set font on screen block sets the font and size used for displaying text on the brain’s screen. This font will apply to all subsequently printed text.
Establezca la fuente en [monoespaciado v] [medio v] en la pantalla
Parámetros |
Descripción |
|---|---|
fuente |
La fuente a utilizar:
|
tamaño |
Tamaño a utilizar:
|
|
|
|
|---|---|---|
|
|
|
|
|
|
|
Ejemplo
cuando empezó
[Display two different fonts on separate lines.]
Establezca la fuente en [monoespaciado v] [medio v] en la pantalla
imprimir [Mono Medium] en la pantalla ◀ y coloque el cursor en la siguiente fila
Establezca la fuente en [proporcional v] [medio v] en la pantalla
imprimir [Prop Medium] en la pantalla ◀ y coloque el cursor en la siguiente fila

set print precision on screen#
The set print precision on screen block sets the precision formatting used for displaying numbers on the brain’s screen. This print precision will apply to all subsequently printed numbers.
Establezca la precisión de impresión en [0.1 v] en la pantalla
Parámetros |
Descripción |
|---|---|
precisión |
Establece la precisión de impresión en:
|
Ejemplo
cuando empezó
[Print 1/3 as 0.33.]
Establezca la precisión de impresión en [0.01 v] en la pantalla
imprimir ([1] / [3]) en la pantalla ◀ y coloque el cursor en la siguiente fila

set pen width on screen#
The set pen width on screen block sets the pen width used for drawing lines and shapes.
Establezca el ancho del lápiz en [10] en la pantalla
Parámetros |
Descripción |
|---|---|
ancho |
El ancho del lápiz en píxeles en un rango de 0 a 32. |
Ejemplo
cuando empezó
[Draw two circles with different pen widths.]
dibuja el círculo (40) (70) (20) en la pantalla
Establezca el ancho del lápiz en (5) en la pantalla
dibuja el círculo (100) (70) (20) en la pantalla

set pen / font color on screen#
The set pen / font color on screen block sets the pen color used for drawing lines, shapes, and text on the brain’s screen.
Establezca el color del lápiz/fuente en [rojo v] en la pantalla
Parámetros |
Descripción |
|---|---|
color |
Establece el color del lápiz a:
|
Ejemplo
cuando empezó
[Draw two rectangles with different colors.]
dibuja el rectángulo (100) (50) (10) (20) en la pantalla
Establezca el color del lápiz/fuente en [azul v] en la pantalla
dibuja el rectángulo (50) (50) (10) (20) en la pantalla

set fill color on screen#
The set fill color on screen block sets the fill color used when shapes are drawn.
Establezca el color de relleno en [rojo v] en la pantalla
Parámetros |
Descripción |
|---|---|
color |
Establece el color de relleno a:
|
Ejemplo
cuando empezó
[Draw a yellow circle.]
Establezca el color de relleno en [amarillo v] en la pantalla
dibuja el círculo (50) (50) (20) en la pantalla

Dibujar#
draw pixel on screen#
The draw pixel on screen block draws a pixel at the specified (x, y) screen coordinate in the current pen color.
Dibuja el píxel [0] [0] en la pantalla
Parámetros |
Descripción |
|---|---|
incógnita |
La coordenada x para dibujar el píxel. |
y |
La coordenada y para dibujar el píxel. |
Ejemplo
cuando empezó
[Draw one pixel at the center of the screen.]
Dibuja el píxel (80) (50) en la pantalla
![]()
draw line on screen#
The draw line on screen block draws a line from the first specified screen coordinate (x1, y1) to the second specified screen coordinate (x2, y2) using the current pen width and pen color.
dibuja la línea [0] [0] [159] [107] en la pantalla
Parámetros |
Descripción |
|---|---|
x1 |
La coordenada x en píxeles del inicio de la línea. |
año1 |
La coordenada y en píxeles del inicio de la línea. |
x2 |
La coordenada x en píxeles del final de la línea. |
Año 2 |
La coordenada y en píxeles del final de la línea. |
Ejemplo
cuando empezó
[Draw a line from the top left to bottom right of the screen.]
dibuja la línea (0) (0) (159) (107) en la pantalla

draw rectangle on screen#
The draw rectangle on screen block draws a rectangle using the current pen width, pen color, and fill colors.
dibuja el rectángulo [0] [0] [10] [10] en la pantalla
Parámetros |
Descripción |
|---|---|
incógnita |
La coordenada x en píxeles de la esquina superior izquierda del rectángulo. |
y |
La coordenada y en píxeles de la esquina superior izquierda del rectángulo. |
ancho |
El ancho del rectángulo en píxeles. |
altura |
La altura del rectángulo en píxeles. |
Ejemplo
cuando empezó
[Draw a rectangle on the screen.]
dibuja el rectángulo (25) (25) (100) (50) en la pantalla

draw circle on screen#
The draw circle on screen block draws a circle using the current pen width, pen color, and fill colors.
dibuja el círculo [0] [0] [10] en la pantalla
Parámetros |
Descripción |
|---|---|
incógnita |
La coordenada x en píxeles del centro del círculo. |
y |
La coordenada y en píxeles del centro del círculo. |
radio |
El radio del círculo en píxeles. |
Ejemplo
cuando empezó
[Draw a circle on the screen.]
dibuja el círculo (80) (50) (20) en la pantalla










