Jump to content

ColorList: Difference between revisions

From ModEnc²
en>Testid123
mNo edit summary
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DeeZireInclusion}}<br />
{{Flag
Specifies the colors, in 16-bit RGB, that can be used for the particle. Used only on 'spark' types.
|name={{PAGENAME}}
|files={{Categ|Rules(md).ini}}
|values={{Values|colorlist}}
|default=(0,0,0)
|types={{Categ|Particles}}
|ts=yes
|fs=yes
|hp=yes
|ra2=yes
|yr=yes
}}
Specifies the color(s) available to this particle, expressed in 24-bit RGB-format. Only applicable to [[Particles_and_ParticleSystems#On_Particles_4|spark]] and [[Particles_and_ParticleSystems#On_Particles_5|railgun]] types.


{{Bugs}}
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.


*If there is no <u><b>[[MaxDC]]</b></u> and <u><b>[[MaxEC]]</b></u> The internal name code <u><b><font style="Color:blue">ColorList</font></b></u> will not have a color switching effect. as you specify
==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]]

Latest revision as of 14:49, 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, expressed in 24-bit RGB-format. 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