Jump to content

ColorList

From ModEnc²
Revision as of 14:46, 21 April 2025 by Crimsonum (talk | contribs) (Update information and value type)
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: ColorList
File(s): Rules(md).ini
Values: Comma-separated list of colors.
Default: (0,0,0)
Applicable to: Particles


Specifies the color(s) available to this particle. Only applicable to spark and railgun types.

Spark and railgun particles have no shape, instead they are drawn as a single pixel whose color depends on this list. The particle starts with the first1 color on this list, then smoothly transitions to the next color in the list at the rate specified by its ColorSpeed, then to the next, and so on. When the particle reaches the end of the list, it will retain that last color until the particle expires.

Configuration Example

ColorList=(200,200,200),(150,150,150)

Notes

Spark particles are subject to gravity. If the particle touches the ground, it will expire, even if it has not yet reached the end of its color list.

Footnotes

1 or the color specified in StartColor1 or StartColor2, if defined.

See Also