Python#
This guide provides detailed information on how to use the Python methods in VEXcode for the VEX AIM Coding Robot. Here, you will learn how to read and understand each method, with comprehensive descriptions, parameters, and usage examples.
Understanding the Method Entries#
Each method entry in the API Reference includes the following components:
Command Name – The official name of the command.
Description – A brief explanation of what the command does and what it may return.
Definition – The syntax of the command, showing how it should be written in code.
Parameter Table – Lists all inputs the command accepts.
Example Code – A usage example provided as a copy-and-paste code block.
Example Method Entry#
establecer_color_del_texto_de_la_consola#
set_console_text_color sets the color of all subsequent print commands in the Console window.
Usage:
set_console_text_color(color)
Parameters |
Descripción |
|---|---|
|
The color to use for all new text:
|
# Display a green message on the Console
set_console_text_color(GREEN)
print("I am green!")