Particles_Colored

Category: Particles
Since engine version: 5.3.3 OC

Description

Creates a colored version of another particle definition.

Syntax

proplist Particles_Colored(proplist prototype, int color1, int color2);

Parameters

prototype:
Particle prototype of which a colored version is returned.
color1:
RGB color in format 0xRRGGBB
color2:
[opt] Secondary color. If given, particles are created with a random color between color and color2.

Remark

See the particle documentation for further explanations of the particle system.

Example

CreateParticle("MagicSpark", 0,0, PV_Random(-10,10), PV_Random(-10,10), PV_Random(10,50), Particles_Colored(Particles_Spark(),0xff0000,0x00ff00), 15);
Creates 15 particles with coloration varying between red and green.
See also: CreateParticle
Sven2, 2013-12