Pantalla#
Introducción#
The Screen blocks control the VEX AIR Drone Controller’s screen, allowing your controller to show text, numbers, graphics, and images, and respond to touch input.
Nota: Si el VEX AIR Drone está emparejado con un controlador, se mostrará un temporizador en la parte superior de la pantalla de impresión que indica el tiempo transcurrido del proyecto actual. Cualquier texto o dibujo aparecerá detrás del temporizador.
Below is a list of available blocks:
Cursor Print - Display text and manage the print cursor.
print on screen — Prints text, numbers, or variable values on the controller screen.
establecer cursor en fila columna en pantalla — Mueve el cursor a una fila y columna específicas.
establecer cursor a la siguiente fila en la pantalla — Mueve el cursor a la columna 1 de la siguiente fila.
borrar fila en pantalla — Borra una fila de texto específica.
screen cursor column — Reports the column number where text will be printed.
screen cursor row — Reports the row number where text will be printed.
Impresión XY: imprime texto en coordenadas basadas en píxeles.
print at coordinate on screen — Prints text, numbers, or variable values at a specific x and y coordinate.
set screen origin — Changes the origin (0, 0) used for coordinate-based printing and drawing.
Settings - Change the appearance of text, graphics, and screen display.
clear screen — Erases all text, drawings, and images from the screen.
wait for screen to render — Switches screen drawing to render-later behavior.
fill screen — Erases all text, drawings, and images from the screen, then sets the screen’s background color.
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 text fill color on screen – Sets the fill color behind printed text.
set draw fill color on screen — Sets the fill color for drawn shapes.
Dibujar - Crear gráficos y elementos visuales.
mostrar archivo de imagen en pantalla — Muestra una imagen subida por el usuario en la pantalla.
draw pixel on screen — Draws one pixel at a specified coordinate.
dibujar línea en la pantalla — Dibuja una línea entre dos puntos.
dibujar rectángulo en la pantalla — Dibuja un rectángulo con las dimensiones especificadas.
dibujar círculo en la pantalla — Dibuja un círculo con un radio dado.
Toque: detecta interacciones en la pantalla.
screen pressed — Reports whether the screen is currently being pressed.
screen position — Reports the x- or y-coordinate of the last screen press.
when screen event — Runs when the screen is pressed or released.
Cursor Imprimir#
imprimir en pantalla#
The print on screen stack block prints text, numbers, or variable values on the controller screen at the current cursor position and font.
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 [Time to fly!] 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 controller screen. The next print on screen block will start printing at that location.
The number of characters that can fit on the screen depends on the selected font. With the default monospaced medium font, up to 18 rows and 53 columns can be displayed clearly. Text placed beyond this range may be cut off or become difficult to read.
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. |
Ejemplos
cuando empezó
[Display text starting at Row 7 Column 25.]
Coloque el cursor en la fila [7] columna [25] en la pantalla
imprimir [Row 7, Column 25] 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 controller 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 controller screen.
Limpiar la fila [1] de la pantalla
Parámetros |
Descripción |
|---|---|
fila |
El número de fila a borrar. |
Ejemplo
cuando empezó
[Clear only the second row of text.]
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
columna del cursor de la pantalla#
The screen cursor column reporter block reports the column number where text will be printed as an integer.
(columna del cursor de la pantalla)
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 [7] columna [25] en la pantalla
imprimir (columna del cursor de la pantalla) en la pantalla ▶

fila del cursor de la pantalla#
The screen cursor row reporter block reports the row number where text will be printed as an integer.
(fila del cursor de la pantalla)
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 [7] columna [25] en la pantalla
imprimir (fila del cursor de la pantalla) en la pantalla ▶

Impresión XY#
Imprimir en la coordenada que aparece en pantalla.#
The print at coordinate on screen stack block prints text, numbers, or variable values on the controller screen at a specific (x, y) position in pixels, using the current font and origin. x sets how far from the left side the text begins, and y sets where the bottom of the letters sit. This block disregards the current cursor position.
imprimir [VEXcode] en x:[80] y:[120] en pantalla
Parámetros |
Descripción |
|---|---|
valor |
The text, number, or variable value to print on the screen. |
incógnita |
La coordenada x en píxeles (de 0 a 640, donde 0 es izquierda y 640 es derecha). |
y |
La coordenada y en píxeles (de 0 a 480, donde 0 es superior y 480 es inferior). |
Ejemplo
cuando empezó
[Display a message starting in the middle of the screen.]
imprimir [Hello, drone!] en x:[320] y:[240] en pantalla

establecer el origen de la pantalla#
The set screen origin stack block sets the origin (0, 0) used for drawing and coordinate-based printing on the controller screen. By default, the origin is the top-left corner of the screen. This block can reset the origin to an alternate (x, y) screen coordinate location.
establecer origen de pantalla x: [0] y: [0]
Parámetros |
Descripción |
|---|---|
incógnita |
La coordenada x en píxeles para establecer el nuevo origen. |
y |
La coordenada y en píxeles para establecer el nuevo origen. |
Ejemplo
cuando empezó
[Set the origin to the center of the screen.]
establecer origen de pantalla x: [320] y: [240]
[Draw a rectangle at the new origin.]
dibuja el rectángulo [0] [0] [80] [40] en la pantalla

Ajustes#
pantalla clara#
The clear screen stack block clears all drawings, text, and images from the controller 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 [320] [240] [80] en la pantalla
esperar [2] segundos
pantalla clara
esperar a que se renderice la pantalla#
The wait for screen to render stack block switches screen drawing to render-later behavior. Once this block runs, following screen blocks will not appear on the controller screen until the next wait for screen to render block runs.
Note: Use this block before drawing a group of text, shapes, or images, then use it again to render the full update at once.
esperar a que se renderice la pantalla
Parámetros |
Descripción |
|---|---|
Este bloque no tiene parámetros. |
Ejemplo
cuando empezó
[Display text and images when button 7 is pressed.]
esperar a que se renderice la pantalla
imprimir [Screen rendered!] en la pantalla ▶
dibuja el círculo [320] [240] [80] en la pantalla
esperar hasta <¿Botón del controlador [7 v] presionado?>
esperar a que se renderice la pantalla

llenar la pantalla#
The fill screen stack block clears all drawings, text, and images from the controller screen, then changes the background to a specified color.
llenar la pantalla con [rojo v]
Parámetros |
Descripción |
|---|---|
color |
The color to change the background to:
|
Ejemplo
cuando empezó
[Say "Hello" then turn screen green.]
imprimir [Hello] en la pantalla ▶
esperar [2] segundos
llenar la pantalla con [verde v]

establecer fuente en pantalla#
The set font on screen stack block sets the font and size used for displaying text on the controller 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 |
|---|---|
tipo |
The font type: monospaced or proportional. |
tamaño |
The font size (shown 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 controller 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 |
Sets the print precision to:
|
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 |
El ancho del lápiz en píxeles. |
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 [200] [200] [200] [80] 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. The default color is white.
Establezca el color del lápiz/fuente en [rojo v] en la pantalla
Ejemplo
Parámetros |
Descripción |
|---|---|
color |
The pen and font color to use:
|
cuando empezó
[Draw a rectangle with an orange outline.]
Establezca el color del lápiz/fuente en [naranja v] en la pantalla
dibuja el rectángulo [200] [150] [240] [150] en la pantalla
Establezca el color del lápiz/fuente en [blanco v] en la pantalla
print [VEXcode AIR] at x: [250] y: [220] on screen

establecer el color de relleno del texto en la pantalla#
The set text fill color on screen stack block sets the fill color behind printed text. The default text fill color is transparent.
Establezca el color de relleno del texto en [rojo v] en la pantalla
Parámetros |
Descripción |
|---|---|
color |
The text fill color to use:
|
Ejemplos
cuando empezó :: hat events
[Display two colors behind text.]
Establezca el color de relleno del texto en [rojo v] en la pantalla
imprimir ["Red"] en la pantalla ▶
Colocar el cursor en la siguiente fila de la pantalla
Establezca el color de relleno del texto en [azul v] en la pantalla
imprimir ["Blue"] en la pantalla ▶
establecer color de relleno de dibujo en la pantalla#
The set draw fill color on screen stack block sets the fill color used when shapes are drawn. The default fill color is black.
Establezca el color de relleno del dibujo en [rojo v] en la pantalla
Parámetros |
Descripción |
|---|---|
color |
The shape fill color to use:
|
Ejemplos
cuando empezó
[Draw an orange-filled rectangle with text on top.]
Establezca el color de relleno del dibujo en [naranja v] en la pantalla
dibuja el rectángulo [200] [150] [240] [150] en la pantalla
print [VEXcode AIR] at x: [250] y: [220] on screen

Dibujar#
Mostrar archivo de imagen en pantalla#
The show image file on screen stack block draws a custom user-uploaded image on the controller screen at the set origin.
mostrar archivo de imagen [IMAGE1 v]
Parámetros |
Descripción |
|---|---|
número de imagen |
La imagen subida por el usuario que se usará. Las opciones cambiarán si se editan los nombres de las imágenes en el Panel de control. |
Ejemplo
cuando empezó
[Display custom image on screen.]
mostrar archivo de imagen [IMAGE1 v]
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 640. |
y |
The y-coordinate to draw the pixel from 0 to 480. |
Ejemplo
cuando empezó
[Draw five pixels in a diagonal.]
Dibuja el píxel [360] [200] en la pantalla
Dibuja el píxel [340] [220] en la pantalla
Dibuja el píxel [320] [240] en la pantalla
Dibuja el píxel [300] [260] en la pantalla
Dibuja el píxel [280] [280] 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 |
The x-coordinate in pixels of the start of the line from 0 to 640. |
año1 |
The y-coordinate in pixels of the start of the line from 0 to 480. |
x2 |
The x-coordinate in pixels of the end of the line from 0 to 640. |
y2 |
The y-coordinate in pixels of the end of the line from 0 to 480. |
Ejemplo
cuando empezó
[Make an X across the screen.]
dibuja la línea [0] [0] [640] [480] en la pantalla
Establezca el color del lápiz/fuente en [cyan v] en la pantalla
dibuja la línea [0] [480] [640] [0] 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
Ejemplo
Parámetros |
Descripción |
|---|---|
incógnita |
The x-coordinate in pixels of the top-left corner of the rectangle from 0 to 640. |
y |
The y-coordinate in pixels of the top-left corner of the rectangle from 0 to 480. |
ancho |
El ancho del rectángulo en píxeles. |
altura |
La altura del rectángulo en píxeles. |
cuando empezó
[Draw two rectangles on the screen.]
dibuja el rectángulo [0] [0] [620] [460] en la pantalla
Establezca el color de relleno del dibujo en [verde v] en la pantalla
dibuja el rectángulo [200] [180] [200] [100] 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 640. |
y |
The y-coordinate in pixels of the center of the circle from 0 to 480. |
radio |
El radio del círculo en píxeles. |
Ejemplo
cuando empezó
[Draw one green circle on the screen.]
Establezca el color de relleno del dibujo en [verde v] en la pantalla
dibuja el círculo [320] [240] [200] en la pantalla

Tocar#
screen pressed#
The screen pressed Boolean block reports whether the controller’s screen is currently being pressed.
True - Screen is currently being pressed
False - Screen is not being pressed
<¿pantalla presionada?>
Parámetros |
Descripción |
|---|---|
Este bloque no tiene parámetros. |
Ejemplo
cuando empezó
[Play a sound when the screen is pressed.]
para siempre
si <¿pantalla presionada?> entonces
tocar nota [bajo v] [C v] [note_eight v] ▶
cuando empezó
[Display different messages after the screen is pressed.]
esperar hasta <¿pantalla presionada?>
imprimir [First message!] en la pantalla ▶
Colocar el cursor en la siguiente fila de la pantalla
[Lift finger to press the screen again.]
esperar hasta <no <¿pantalla presionada?>>
esperar hasta <¿pantalla presionada?>
imprimir [Second message!] en la pantalla ▶
posición de la pantalla#
The screen position reporter block reports the x- or y-coordinate in pixels where the screen was last pressed. The return value for x is between 0 (left) and 640 (right). The return value for y is between 0 (top) and 480 (bottom).

(posición de pantalla [incógnita v])
Parámetros |
Descripción |
|---|---|
coordinar |
The coordinate of the last screen press in pixels: x reports the horizontal position, and y reports the vertical position. |
Ejemplo
cuando empezó
[Play high or low note based on where screen is pressed.]
para siempre
si <¿pantalla presionada?> entonces
si <(posición de pantalla [incógnita v]) [math_greater_than v] [320]> entonces
tocar nota [alto v] [C v] [note_eight v] ▶
demás
tocar nota [bajo v] [C v] [note_eight v] ▶
cuando el evento de pantalla#
The when screen event hat block runs when the controller screen is pressed or released.
cuando la pantalla [presionado v]
Parámetros |
Descripción |
|---|---|
acción |
Determines when the attached stack of blocks will run: pressed runs when the screen is pressed, and released runs when the screen is released. |
Ejemplo
cuando la pantalla [presionado v]
[Play a sound when the screen is pressed.]
reproducir sonido [éxito v] ▶











