ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
ColorAdd
Jump to navigation
Jump to search
| Flag: | ColorAdd |
| File(s): | rules(md).ini |
| Values: | ERROR – No value types set! Please edit this page and fix the Flag template! |
Defines color tinting values used for special effects like airstrike targeting and force shields. Uses a bitwise OR operation for performance optimization in the blitting routines.
[Technical Details]
- Uses 16-bit RGB color in 5,6,5 format
- Red values range: 0-31 (5 bits)
- Green values range: 0-63 (6 bits)
- Blue values range: 0-31 (5 bits)
- Values are specified as decimal RGB triplets
[Color Definitions]
| Name | RGB Values | Binary (R,G,B) | Index |
|---|---|---|---|
| None | 0,0,0 | 00000,000000,00000 | 0 |
| StrongRed | 31,0,0 | 11111,000000,00000 | 1 |
| StrongGreen | 0,63,0 | 00000,111111,00000 | 2 |
| StrongBlue | 0,0,31 | 00000,000000,11111 | 3 |
| HighRed | 24,0,0 | 11000,000000,00000 | 4 |
| HighGreen | 0,56,0 | 00000,111000,00000 | 5 |
| HighBlue | 0,0,24 | 00000,000000,11000 | 6 |
| BrightWhite | 31,63,31 | 11111,111111,11111 | 7 |
| LowWhite | 7,7,7 | 00111,000111,00111 | 8 |
| HighWhite | 24,56,24 | 11000,111000,11000 | 9 |
| MidWhite | 14,28,14 | 01110,011100,01110 | 10 |
| Purple | 15,0,15 | 01111,000000,01111 | 11 |
| HighYellow | 24,56,0 | 11000,111000,00000 | 12 |
| TopYellow | 16,32,0 | 10000,100000,00000 | 13 |
[Usage Examples]
- StrongRed - Used for airstrike targeting
- HighBlue - Used for force shield effects
[See also]