Bloques#
This site provides a detailed reference for all the Blocks available in VEXcode IQ (2nd gen). Each block entry includes descriptions, parameters, and usage examples to help you understand how to use them effectively.
Reading a Block Entry#
Each block entry follows a consistent structure:
Block Name – The official name of the block.
Description – A brief explanation of what the block does and what it may return.
Block Image – A visual representation of the block.
Parameter Table – Lists all inputs the block accepts, including dropdown options when applicable.
Example Code – A usage example formatted as a code block.
Ejemplo de entrada de bloque#
establecer el color de fuente en la consola#
The set font color on console block changes the color of text displayed on the console. This affects all future printed text until the color is changed again.
Establezca el color de fuente a [rojo v] en la consola
Parameter |
Descripción |
|---|---|
color |
The color to set: |
Ejemplo
cuando empezó
[Display a green message.]
Establezca el color de fuente a [verde v] en la consola
imprimir [I am green!] en la consola ◀ y coloque el cursor en la siguiente fila