ColorList: Difference between revisions
en>Testid123 mNo edit summary |
No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
|name={{PAGENAME}} | |name={{PAGENAME}} | ||
|files={{Categ|Rules(md).ini}} | |files={{Categ|Rules(md).ini}} | ||
|values={{Values| | |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 | 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. | ||
{{ | 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]] | |||
Latest revision as of 14:49, 21 April 2025
|
|
|
|
|
|
| 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.





