Pantalla#
Introducción#
The Screen blocks control the EXP Brain’s screen, allowing your robot to show text, numbers, and graphics, and respond to touch input.
Por defecto, la fuente para imprimir en el Brain es monoespaciada pequeña, que tiene 7 filas y 20 columnas.
Para dibujar, la resolución del Brain es de 159 x 107 píxeles.

A continuación se muestra una lista de los bloques disponibles:
Impresión con cursor: muestra el texto y gestiona el cursor de impresión.
print on screen – Prints text, numbers, or variable values on the Brain screen.
establecer cursor en fila columna en pantalla – Mueve el cursor a una fila y columna específicas.
establecer cursor en la siguiente fila de la pantalla – Mueve el cursor a la columna 1 de la siguiente fila.
clear row on screen – Clears a specific row of text.
cursor column – Reports the column number where text will be printed.
cursor row – Reports the row number where text will be printed.
Ajustes: Cambia la apariencia del texto y los gráficos.
borrar pantalla – Borra todo el texto y los dibujos de la pantalla.
establecer fuente en pantalla – Cambia el tipo y tamaño de fuente para la visualización del texto.
set print precision on screen – Sets how many decimal places to show when printing numbers.
set pen width on screen – Sets the thickness of drawn lines and shape outlines.
set pen / font color on screen – Sets the color of text, pixels, lines, and shape outlines.
set fill color on screen – Sets the fill color for drawn shapes.
Dibuja: crea formas, líneas y gráficos en la pantalla del cerebro.
draw pixel on screen – Draws a single pixel at a coordinate.
dibujar línea en la pantalla – Dibuja una línea entre dos puntos.
dibujar rectángulo en la pantalla – Dibuja un rectángulo usando dos puntos de esquina.
dibujar círculo en la pantalla – Dibuja un círculo con un centro y un radio definidos.
Impresión del cursor#
imprimir en pantalla#
The print on screen stack block prints text, numbers, or variable values on the Brain screen at the current cursor position and font.
cuando empezó
imprimir [VEXcode] en la pantalla ▶
Parámetros |
Descripción |
|---|---|
valor |
The text, number, or variable value to print on the screen. |
and set cursor to next row |
Select the arrow ( ▶ ) to expand the block to say and set cursor to next row, so the cursor moves to column 1 of the next row after printing. |
Ejemplo
cuando empezó
[Display a message at the starting cursor position.]
imprimir [Hello, Robot!] en la pantalla ▶

Colocar el cursor en la fila o columna de la pantalla.#
The set cursor to row column on screen stack block moves the cursor to a specific row and column on the Brain screen. The next print on screen block will start printing at that location.
How many rows and columns can comfortably fit depends on the selected font. With the default monospaced medium font, up to 8 rows and 13 columns can be displayed clearly. Text placed beyond this range may be cut off or become difficult to read.
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 stack 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 stack block.
Coloque el cursor en la fila [1] columna [1] en la pantalla
Parámetros |
Descripción |
|---|---|
fila |
The row to move the cursor to. |
columna |
The column to move the cursor to. |
Ejemplo
cuando empezó
[Display text starting at Row 3 Column 10.]
Coloque el cursor en la fila [3] columna [10] en la pantalla
imprimir [R3, C10] en la pantalla ▶

Colocar el cursor en la siguiente fila de la pantalla.#
The set cursor to next row on screen stack block moves the cursor to column 1 on the next row on the Brain screen.
Colocar el cursor en la siguiente fila de la pantalla
Parámetros |
Descripción |
|---|---|
Este bloque no tiene parámetros. |
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 ▶

Borrar fila en la pantalla#
The clear row on screen stack block clears a row of text on the Brain screen.
Limpiar la fila [1] de la pantalla
Parámetros |
Descripción |
|---|---|
fila |
El número de fila a borrar. |
Ejemplo
cuando empezó
[Only keep the text on row 1.]
imprimir [This text stays] en la pantalla ▶
Colocar el cursor en la siguiente fila de la pantalla
imprimir [This text disappears] en la pantalla ▶
esperar [3] segundos
Limpiar la fila [2] de la pantalla
cursor column#
The cursor column reporter block reports the column number where text will be printed as a whole number.
(columna del cursor)
Parámetros |
Descripción |
|---|---|
Este bloque no tiene parámetros. |
Ejemplo
cuando empezó
[Display the cursor's current column.]
Coloque el cursor en la fila [3] columna [10] en la pantalla
imprimir (columna del cursor) en la pantalla ▶

cursor row#
The cursor row reporter block reports the row number where text will be printed as a whole number.
(fila del cursor)
Parámetros |
Descripción |
|---|---|
Este bloque no tiene parámetros. |
Ejemplo
cuando empezó
[Display the cursor's current row.]
Coloque el cursor en la fila [3] columna [10] en la pantalla
imprimir (fila del cursor) en la pantalla ▶

Ajustes#
pantalla limpia#
The clear screen stack block clears all drawings and text from the Brain screen.
pantalla clara
Parámetros |
Descripción |
|---|---|
Este bloque no tiene parámetros. |
Ejemplo
cuando empezó
[Draw a circle, and clear it after 2 seconds.]
dibuja el círculo [120] [120] [40] en la pantalla
esperar [2] segundos
pantalla clara
establecer fuente en pantalla#
The set font on screen stack block sets the font and size used for displaying text on the Brain screen. This font will apply to all text printed after this block runs.
Establezca la fuente en [monoespaciado v] [medio v] en la pantalla
Parámetros |
Descripción |
|---|---|
estilo |
The font style: monospaced or proportional |
tamaño |
The font size (examples below):
|
|
|
|
|---|---|---|
|
|
|
|
|
|
|
Ejemplo
cuando empezó
[Display text using a larger font]
Establezca la fuente en [monoespaciado v] [extra grande v] en la pantalla
imprimir [VEX] en la pantalla ▶

Ajustar la precisión de impresión en pantalla#
The set print precision on screen stack block sets how many decimal places are shown when numbers are printed on the Brain screen. This print precision will apply to all numbers printed after this block runs.
Establezca la precisión de impresión en [0.1 v] en la pantalla
Parámetros |
Descripción |
|---|---|
precisión |
The print precision to use:
|
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] [math_division v] [3]) en la pantalla ▶

Ajustar el ancho del lápiz en la pantalla#
The set pen width on screen stack block sets the thickness of drawn lines and shape outlines.
Establezca el ancho del lápiz en [10] en la pantalla
Parámetros |
Descripción |
|---|---|
ancho |
The pen width, in pixels, from 0 to 32. |
Ejemplo
cuando empezó
[Draw a rectangle with a pen width of 10.]
Establezca el ancho del lápiz en [10] en la pantalla
dibuja el rectángulo [20] [20] [75] [50] en la pantalla

Configurar el color del lápiz/fuente en la pantalla#
The set pen / font color on screen stack block sets the color of text, pixels, lines, and shape outlines.
Establezca el color del lápiz/fuente en [rojo v] en la pantalla
Parámetros |
Descripción |
|---|---|
color |
The pen and font color to use:
|
Ejemplo
cuando empezó
[Draw a rectangle with orange borders.]
Establezca el color del lápiz/fuente en [naranja v] en la pantalla
dibuja el rectángulo [20] [20] [75] [50] en la pantalla

establecer color de relleno en la pantalla#
The set fill color on screen stack 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 |
The fill color to use:
|
Ejemplos
cuando empezó
[Draw a purple rectangle.]
Establezca el color de relleno en [púrpura v] en la pantalla
dibuja el rectángulo [20] [20] [75] [50] en la pantalla

Dibujar#
dibujar píxeles en la pantalla#
The draw pixel on screen stack block draws one pixel at the selected x and y coordinate using the current pen color.
Dibuja el píxel [0] [0] en la pantalla
Parámetros |
Descripción |
|---|---|
incógnita |
The x-coordinate to draw the pixel from 0 to 159. |
y |
The y-coordinate to draw the pixel from 0 to 107. |
Ejemplo
cuando empezó
[Draw the pixels marking the corners of a square.]
Dibuja el píxel [50] [50] en la pantalla
Dibuja el píxel [50] [75] en la pantalla
Dibuja el píxel [75] [50] en la pantalla
Dibuja el píxel [75] [75] en la pantalla
![]()
dibujar una línea en la pantalla#
The draw line on screen stack block draws a line from the first screen coordinate (x1, y1) to the second screen coordinate (x2, y2) using the current pen width and pen color.
dibuja la línea [0] [0] [10] [10] en la pantalla
Parámetros |
Descripción |
|---|---|
x1 |
La coordenada x en píxeles del inicio de la línea, desde 0 hasta 159. |
año 1 |
La coordenada y en píxeles del inicio de la línea, de 0 a 107. |
x2 |
La coordenada x en píxeles del final de la línea, de 0 a 159. |
y2 |
La coordenada y en píxeles del final de la línea, de 0 a 107. |
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

Dibujar un rectángulo en la pantalla#
The draw rectangle on screen stack block draws a rectangle using the current pen width, pen color, and fill color.
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, de 0 a 159. |
y |
La coordenada y en píxeles de la esquina superior izquierda del rectángulo, de 0 a 107. |
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 [20] [20] [80] [30] en la pantalla

dibujar un círculo en la pantalla#
The draw circle on screen stack block draws a circle using the current pen width, pen color, and fill color.
dibuja el círculo [0] [0] [10] en la pantalla
Parámetros |
Descripción |
|---|---|
incógnita |
The x-coordinate in pixels of the center of the circle from 0 to 159. |
y |
The y-coordinate in pixels of the center of the circle from 0 to 107. |
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










