指令库#
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.
指令块示例条目#
在控制台上设置字体颜色#
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.
设定控制台字体颜色为 [红色 v]
Parameter |
描述 |
|---|---|
颜色 |
The color to set: |
示例
当开始
[Display a green message.]
设定控制台字体颜色为 [绿色 v]
在控制台上打印 [I am green!]◀ 并设定光标为下一行