Sets a particle type to be any blend of two given colours.


part_type_colour_mix(ind, colour1, colour2);

参数 描述
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.

返回: N/A(无返回值)


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


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.

上一页: Particle Types
下一页: part_type_colour_rgb
© Copyright YoYo Games Ltd. 2018 All Rights Reserved