Mother DocsMother Docs
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
Buy me a Coffee
Steam Workshop
Discord
  • Mother OS (Ingame Script)
  • Mother OS (Ingame Script)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Command Line Interface (CLI)
      • Configuration
      • Modules
    • Core Modules

      • Activity Monitor
      • Almanac
      • Block Catalogue
      • Local Storage
      • Intergrid Message Service
    • Extension Modules

      • Air Vent Module
      • Battery Module
      • Terminal Block Module
      • Cockpit Module
      • Connector Module
      • Display Module
      • Docking Module
      • Door Module
      • Flight Control Module
      • Flight Planning Module
      • Gas Tank Module
      • Gyroscope Module
      • Hinge Module
      • Landing Gear Module
      • Light Module
      • Map Module
      • Piston Module
      • Programmable Block Module
      • Rotor Module
      • Screen Module
      • Sensor Module
      • Sorter Module
      • Sound Block Module
      • Thruster Module
      • Timer Block Module
    • Command Cheatsheet
    • Compatibility
    • Examples
  • Mother Core (Script Framework)
    • Getting Started

      • Upgrade Guide
      • Installation
      • Architecture Overview
      • Managing Script Size & Complexity
    • Building A Module
    • Console (CLI)
    • Core Modules
      • Activity Monitor
      • Almanac
      • Block Catalogue
      • Clock
      • Command Bus
      • Configuration
      • Event Bus
      • Intergrid Message Service
      • Local Storage
      • Terminal
    • Utilities

      • Color Helper
      • Security
      • Serializer
  • Powered By Mother

Color Helper

This utility provides a simple interface for common colors and is intended to be used for resolving colors from TerminalCommand arguments.

Important

If you are developing a script that does not need to use colors in commands, use the programmable block's built-in color constants instead. See VRageMath.Color

  • Getting a Color
  • Available Colors

Getting a Color

The ColorHelper class provides a simple way to access common colors by name or RGB string:

// by name
Color red = ColorHelper.GetColor("red");

// by RGB string
Color blue = ColorHelper.GetColor("0,0,255");

Available Colors

NameRGBHexidecimal
red255,0,0#FF0000
green0,255,0#00FF00
blue0,0,255#0000FF
yellow255,255,0#FFFF00
orange255,165,0#FFA500
cyan0,255,255#00FFFF
magenta255,0,255#FF00FF
white255,255,255#FFFFFF
black0,0,0#000000
Last Updated: 9/17/25, 10:41 PM
Contributors: Luke Morrison, lukejamesmorrison
Next
Security