Modding:Colors & Object Rendering
| This page is about modding. See the modding overview for an abstract on modding. |
Overview
Colors are defined in display.text.
Each color is defined by a single letter. &<code> means to set the foreground color, ^<code> means to set the background color.
Only the preset letter codes are allowed, adding new colors isn't totally trivial at the moment.
| Code | Name | Hex | |
|---|---|---|---|
| r | dark red / crimson | #a64a2e | █ |
| R | red / scarlet | #d74200 | █ |
| o | dark orange | #f15f22 | █ |
| O | orange | #e99f10 | █ |
| w | brown | #98875f | █ |
| W | gold / yellow | #cfc041 | █ |
| g | dark green | #009403 | █ |
| G | green | #00c420 | █ |
| b | dark blue | #0048bd | █ |
| B | blue / azure | #0096ff | █ |
| c | dark cyan / teal | #40a4b9 | █ |
| C | cyan | #77bfcf | █ |
| m | dark magenta / purple | #b154cf | █ |
| M | magenta | #da5bd6 | █ |
| k | #0f3b3a | █ | |
| K | dark grey / black | #155352 | █ |
| y | grey | #b1c9c3 | █ |
| Y | white | #ffffff | █ |
To get a palette file for these colors, refer to Visual_Style#Palette.
In XML files, such as ObjectBlueprints.xml, the ampersand (&) must be replaced by the encoded ampersand (&)
| Prefix | Text | Xml |
|---|---|---|
| Foreground | &<code> | &<code> |
| Background | ^<code> | ^<code> |
Render Part
ColorString contains the foreground and (optionally) the background string for the ascii and tiles. Examples: &B or &B^r
TileColor is identical to ColorString, but applies only to tiles. If this is not specified, a tile falls back to using the ColorString.
DetailColor changes the "third" color used only for tiles, not the ascii. DetailColor is always just a single character. Example: g
So ColorString="&M^g" would be foreground bright magenta with a background color of green,
Like this!
If you want to color an item's display name, you enter color codes directly in the display name itself, for example the beaded bracelet:
<part Name="Render" DisplayName="&Cb&Be&ba&cd&Ce&Bd&y bracelet" ColorString="&C"></part>
Note that if a detail color is not specified, it will default to the background viridian color.
Additional Notes
Most default text in the game is colored with the bright grey (&y) color, so you'll often see an &y at the end of strings to reset the color back to normal.
For help formatting a string with colors, check out the super-useful qud-colorgen utility (created by crayon).
2.0.200.0+ Modding
Text can also be colored as follows using any of the color templates defined in StreamingAssets\Base\Colors.xml. Insert non-formatted text here
{{color template|your text to color here}}
List of possible templates
| Shader | Colors | Type |
|---|---|---|
| B | B | sequence |
| C | C | sequence |
| G | G | sequence |
| K | K | sequence |
| M | M | sequence |
| O | O | sequence |
| R | R | sequence |
| W | W | sequence |
| Y | Y | sequence |
| agolgot | K-g-w-m-w-g-K | sequence |
| amorous | r-R-M-m | alternation |
| arctic camouflage | y-y-Y-y-K-y-y-Y-Y-K | sequence |
| astral | Y-y-K-y-Y | alternation |
| auroral | K-g-G-Y-G-g-K | sequence |
| azure | B | sequence |
| b | b | sequence |
| bee | K-w-W-Y-W-w-K | alternation |
| bethsaida | w-W-C-c-m-c-C-W-w | sequence |
| beylah | B-b-g-k-W-R-r | sequence |
| bio | g-G-W-M-W-G-g-g-g-g-g | sequence |
| biomech | w-w-r-r-r-w-r-r | sequence |
| black | K | sequence |
| blaze | r-r-R-W-Y | sequence |
| blue | B | sequence |
| brainbrine | g-g-g-w-W-W-W-w-g-g-g | sequence |
| brown | w | sequence |
| c | c | sequence |
| camouflage | g-g-G-g-K-g-g-G-G-K | sequence |
| chiral | B-b-c-C-M-m-k-m-M-C-c-b | sequence |
| cider | r | solid |
| cloning | Y-Y-Y-Y-Y-Y-M-Y-M-Y-Y-Y-Y-Y-Y | sequence |
| cloudy | y-y-Y-y-Y-Y | sequence |
| coated in plasma | K-K-y-g-G-Y-k-Y-Y-k-Y-G-g-y-K-K | sequence |
| crimson | r | sequence |
| crochide | g-g-g-g-g-G | sequence |
| cryogenic | Y-C-C-Y-c-c-K-y-Y | sequence |
| crystalline | m-m-m-b-B-Y-B-b-m-m-m | sequence |
| crysteel | y-y-K-g-g-K-y-y | alternation |
| cyan | C | sequence |
| dark blue | b | sequence |
| dark cyan | c | sequence |
| dark fiery | r-R-W-R-r | alternation |
| dark gray | K | sequence |
| dark green | g | sequence |
| dark keybind | w | sequence |
| dark magenta | m | sequence |
| dark orange | o | sequence |
| dark red | r | sequence |
| defoliant | W-W-G-g-K-g-G | sequence |
| desert camouflage | w-w-W-w-K-w-w-W-W-K | sequence |
| displacer | b-B-Y-B | sequence |
| dreamsmoke | b-b-b-b-y-Y-Y-W-w-b-b-b | sequence |
| dreamy | b-b-b-B-M-k-W-M-B-b-b-b-b | sequence |
| earth | b-B-W-g-G | sequence |
| eater | Y-Y-M-Y-Y-Y | sequence |
| ehalcodon | y-y-Y-Y-m-Y-Y-y-y | sequence |
| electrical | W | sequence |
| emote | w | solid |
| engraved | Y-y-c-C | sequence |
| entropic | K-K-m-K-K-K-m-m-K-K-y | sequence |
| extradimensional | M-M-m-m-y-y-Y-Y-O-Y-Y-y-m-m-M-M | alternation |
| feathered | C-B-b-g-G-g-b-B-C | alternation |
| fiery | R | sequence |
| filthy | w-w-K-w-K-w-W | sequence |
| forest | g-g-w-G-g-g-w-w-g-G-G-w | sequence |
| freezing | C | sequence |
| fungicide | M-M-R-r-K-r-R | sequence |
| g | g | sequence |
| gaslight | g-g-w-W-w-g-g | alternation |
| ghostly | Y-Y-y-y-K-K | alternation |
| glittering | K-K-y-M-y-K-K | sequence |
| glotrot | K-K-r-R-r | sequence |
| gold | W | sequence |
| graffitied | R-r-w-W-Y-y-r-R-W-w | sequence |
| gray | y | sequence |
| great machine | c-c-C-Y-W-k-W-Y-C-c-c-c-c | sequence |
| green | G | sequence |
| hologram | b-B-C-c | sequence |
| horned | y-W | bordered |
| hotkey | W | solid |
| hypertractor | r-R-W-w-c-C-B-b | sequence |
| hypervelocity | r-R-W-Y-W-R-r | alternation |
| icy | Y-C-B-C-Y | alternation |
| illuminated | c-c-c-C-Y-W-Y-C | sequence |
| implanted | r-r-r-r-r-r-r-C | sequence |
| important | W | sequence |
| internals | W | solid |
| ironshank | K-y-Y-y | sequence |
| issachari | Y-Y-Y-Y-Y-Y-r | sequence |
| jungle | g-g-w-G-g-m-g-w-w-K-g-m-G-G-w | sequence |
| k | k | sequence |
| kaleidoslug | K-C-y-m-M-r-c-C-Y-y-K | sequence |
| kesil | m-m-M-Y-y | sequence |
| keybind | W | sequence |
| lacquered | Y-y-K-y-Y-y-K-y-Y-y | sequence |
| lah | w-W-R-r | sequence |
| lanterned | y-y-y-y-Y-W-Y-y-y | alternation |
| lava | R | solid |
| leafy | g-g-G | sequence |
| leopard | W-W-w-w-W-K-K-w-w-W-W | sequence |
| levant | r-r-y-y-Y-Y | sequence |
| love | Y-R-Y-Y | sequence |
| lovesickness | r-R-M-m-r-R-M | sequence |
| m | m | sequence |
| magenta | M | sequence |
| mercurial | c-c-C-W-Y-W-C-c-c | alternation |
| metachrome | w-W-Y-C-c-c-C-Y-W-w | alternation |
| metamorphic | y-y-y-Y-Y-Y-M-M-M-m-m-m-m | sequence |
| mirrorshades | K-y-Y-Y-y-K | sequence |
| moon | b-B-C-c | sequence |
| nanoneuro | r-R-G-g-K-K-g-G-R-r-g | sequence |
| nanotech | K-K-y-K | sequence |
| nectar | W-w-g-G | sequence |
| nervous | g-g-w-W-w-g-g | sequence |
| neutronic | B-b-K-y-Y | sequence |
| ninefold | b-B | bordered |
| normal | K-K-y-y-Y-y-y-K-K-y-K-y-Y | sequence |
| normalish | y-y-K-y-Y-y-y-y-K-y-Y | sequence |
| o | o | sequence |
| olive | g-g-G-W-w | sequence |
| opalescent | Y-y-K-K-y-Y | sequence |
| orange | O | sequence |
| otherpearl | M-m-y-Y-O-O-Y-y-m-M | sequence |
| overloaded | y-y-w-W-R-W-w-y-y | alternation |
| painted | r-R-W-w-g-G-B | sequence |
| paisley | m-M-Y-M-m | sequence |
| palladium mesh | c-c-c-c-C-W-Y-W-C | sequence |
| patchwork | W-w-r-R-W-w-b-B-W | sequence |
| pearly | Y-Y-y | sequence |
| peridot | G-g-w-W-Y-W-G | sequence |
| phase-harmonic | Y-y-m-y-K | sequence |
| plaid | g-K-G-W-G | sequence |
| plasma | g-G-Y-Y-G-g | sequence |
| plastifer | K-y-Y-y | sequence |
| playernotes | Y | solid |
| polarized | K-y-Y-y-K-y-Y-y-K | alternation |
| prismatic | r-R-W-G-B-b-m | sequence |
| psionic | b-B-C-c-b-B-C | alternation |
| psychalflesh | w-w-w-r-R-M-M-m-M-M-R-r-w-w-w-w | sequence |
| psymeridian | K-K-y-y-y-m-M-M-M-M-m-y-y-y-K-K | sequence |
| purple | m | sequence |
| putrid | K | solid |
| qas | C-c-m | sequence |
| qon | m-b-B | sequence |
| quantum | m-m-m-m-m-m-m-Y-Y-Y-Y-Y | sequence |
| r | r | sequence |
| radiant | r-W-Y-Y-Y-W-r | sequence |
| rainbow | r-R-W-G-B-b-m | alternation |
| red | R | sequence |
| refractive | y-Y | sequence |
| rermadon | Y-G-g-m-m-g-G-Y | sequence |
| resonance | c-c-C-C-W-C-C-c-c | alternation |
| rocket | Y-W-R-R-r-y | alternation |
| rubbergum | W-W-w-w-y-y-Y-W-W | sequence |
| rules | C | solid |
| rusty | r | sequence |
| scaled | g-G-W-w-g-G | sequence |
| scarlet | R | sequence |
| shade | y-K-c-b-B-y-C-y-K | sequence |
| shemesh | r-r-R-R-W-W-Y | sequence |
| shimmering | Y-Y-y-y-K-K-y-y | sequence |
| shugruith | K-y-W-w-m-w-W-y-K | sequence |
| sickly | g-r-m-w-K-G-g-c-K | sequence |
| silvery | Y | sequence |
| skulk | b-b-B-b-b | sequence |
| slimy | g | solid |
| snail-encrusted | w-W-Y-y | sequence |
| snakeskin | g-c-C-G | sequence |
| soul | W-w-c-C-Y-C-c-w-W | alternation |
| sparkling | y-y-Y | sequence |
| spaser | K-g-G-G-g-K | sequence |
| sphynx | C-c-m-M | sequence |
| spiked | R-Y | bordered |
| spring-turret | c-c-C-C-y-y-y-y-y-C-C-c-c | sequence |
| starry | K-Y-K-K-Y-K | sequence |
| structural | Y-y-K-y-Y | alternation |
| sun | W-R-W | alternation |
| sunset | b-B-B-M-m-r-R-W-C-C-W-R-r-m-M-B-B-b | alternation |
| sunslag | r-W-Y-Y-Y-W-r | sequence |
| syphon | c-c-c-C-W-Y | sequence |
| tarnished | G-G-g | sequence |
| tartan | y-K-g-G-K-R-r-K-y | sequence |
| teal | c | sequence |
| telemetric | K-y-c-C-Y-W-C-c-y-K | alternation |
| thermo | R-R-r-c-b-B-B | sequence |
| transkinetic | Y-C-C-c-y-K-K-y-R-W-W-Y | sequence |
| turbow | K-y-Y-Y-R-r | sequence |
| ubernostrum | c-g-G-W-w-c-C-G-g-w-W | sequence |
| urban camouflage | y-y-K-y-K-y-y-K-y-K | sequence |
| visage | R-r-b-B-Y-y | sequence |
| w | w | sequence |
| watery | B-C-Y-C-B | alternation |
| white | Y | sequence |
| y | y | sequence |
| ydfreehold | r-R-k-c-C-W-W-C-c-r-R | sequence |
| yellow | W | sequence |
| zetachrome | m-M-Y-C-c-c-C-Y-M-m | alternation |
Anonymous Templates
To create a temporary template, the format is:
{{[color pattern delimited by -] [type]|[text]}}For example:
{{R-R-R-R-R-M-M sequence|mumble mouth}}
The list of possible types are:
| Type | Pattern | Example |
|---|---|---|
| sequence | repeats the pattern. | texttexttexttext |
| alternation | stretches the pattern so it fits the entire word. | texttexttexttext |
| chaotic | chooses colors randomly out of the colors specified. | |
| bordered | texttexttexttext |
See Also
| |||||||||||||||||