Blocks#
This site provides a detailed reference for all the Blocks available in VEXcode AIM. 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.
Example Block Entry#
set font color on console#
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.
set font color to [red v] on console
Parameter |
Description |
---|---|
color |
The color to set: |
Example
when started :: hat events
[Display a green message.]
set font color to [green v] on console
print [I am green!] on console ◀ and set cursor to next row