区块#

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.

块条目示例#

在控制台上设置字体颜色#

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.

aria-description goes here#
设定控制台字体颜色为 [红色 v]

Parameters

描述

颜色

The color used for all subsequent console text:

  • red
  • green
  • blue
  • black
  • white
  • yellow
  • orange
  • purple
  • cyan

例子

aria-description goes here#
当开始
[Display a green message.]
设定控制台字体颜色为 [绿色 v]
在控制台上打印 [I am green!]◀ 并设定光标为下一行