part_type_colour_mix


Description

With this function you can set the given particle type to be a random blend of two colours.


Syntax:

part_type_colour_mix(ind, colour1, colour2);

Argument Description
ind The index of the particle type to change.
colour1 The first colour the blend will take from.
colour2 The second colour the blend will take from.


Returns:

N/A


Example:

part_type_colour_mix(global.P_Damage, c_red, c_yellow);

The above code will set the colour for each particle emitted of the particle type indexed in the global variable "P_Damage" to be a random mix between the colours red and yellow.