Blocks#
This guide provides detailed information on how to use Blocks in VEXcode for the VEX AIM Coding Robot. Here, you will learn how to read and understand each block with comprehensive descriptions, parameters, and usage examples.
Understanding the Block Entries#
Each block entry in the API Reference includes the following components:
Block Name and Image: This is the name of the block and an image of the block.
Description: A brief explanation of what the block does.
Parameters: Screenshots showing all the available parameters for that block with expanded drop-downs.
Example: Provides an image demonstrating how to use the block in VEXcode.
Example Block Entry#
set font color on console#
The set font color on console block changes the color of the 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
Parameters |
Description |
|---|---|
color |
The color used for all subsequent console text:
|
Example
when started
[Display a green message.]
set font color to [green v] on console
print [I am green!] on console ◀ and set cursor to next row