part_type_colour_mix

Sets a particle type to be any blend of two given 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


Description

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


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.


Back: Particle Types
Next: part_type_colour_rgb
© Copyright YoYo Games Ltd. 2015 All Rights Reserved