Jump to content

ColorList: Difference between revisions

From ModEnc²
MaxDC is not necessary. MaxEC on the other hand, should be a fairly obvious requirement for any particle type.
Update information and value type
Line 2: Line 2:
|name={{PAGENAME}}
|name={{PAGENAME}}
|files={{Categ|Rules(md).ini}}
|files={{Categ|Rules(md).ini}}
|values={{Values|integer}}
|values={{Values|colorlist}}
|default=(0,0,0)
|default=(0,0,0)
|types={{Categ|Particles}}
|types={{Categ|Particles}}
Line 11: Line 11:
|yr=yes
|yr=yes
}}
}}
Specifies the colors, in 16-bit RGB, that can be used for the particle. Used only on 'spark' types.
Specifies the color(s) available to this particle. Only applicable to [[Particles_and_ParticleSystems#On_Particles_4|spark]] and [[Particles_and_ParticleSystems#On_Particles_5|railgun]] types.
==Configuration example==
 
ColorList=(200,200,200),(150,150,150)
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 first{{fnl|1}} color on this list, then smoothly transitions to the next color in the list at the rate specified by its {{f|ColorSpeed|link}}, 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===
{{fn|1|or the color specified in {{f|StartColor1|link}} or {{f|StartColor2|link}}, if defined.}}
 
==See Also==
* [[ColorSpeed]]
* [[StartColor1]]
* [[StartColor2]]

Revision as of 14:46, 21 April 2025

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