VortexDocs
  • Vortex Engine
    • Installation
      • 1. Install Python
      • 2. Install VortexEngine
      • 3. Install Additional Dependencies
    • Getting Started
      • 1. Initialize Vortex
      • 2. Create Game Objects
      • 3. Add Labels
      • 4. Add a First Person Controller
      • 5. Run the Game
    • API Reference
      • 1. Vortex Class
      • 2. Tool Module
      • 3. Data Module
    • Example
      • 1. Basic Example
      • 2. API Integration Example
    • Troubleshooting
      • 1. ModuleNotFoundError
        • 1. Verify Installation:
        • 2. Check Python Environment:
        • 3. Verify Import Statement:
      • 2. Color Not Recognized
        • 1. Check Color Input:
        • 2. Refer to color_dict:
        • 3. Update Color Usage:
        • 4. Verify Code:
    • Additional Resources
  • Vortex Breakout
Powered by GitBook
On this page
  1. Vortex Engine
  2. Troubleshooting
  3. 2. Color Not Recognized

2. Refer to color_dict:

Check the color_dict for supported colors. For example:


color_dict = {
    "red": (255, 0, 0),
    "green": (0, 255, 0),
    "blue": (0, 0, 255)
}

Ensure that the color name you are using matches one of the keys in color_dict.

Previous1. Check Color Input:Next3. Update Color Usage:

Last updated 10 months ago