part_type_colour2

Sets the particle type to blend between two colours

语法:

part_type_colour2(ind, colour1, colour2);


参数 描述
ind The index of the particle type to change.
colour1 The colour the particle will start at.
colour2 The colour the particle will end at.


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


描述

This function can be used to set a two colour gradient for each particle created of the given type. The first colour is that which all particles will start with, and the second colour is the one on which the particle will end with, and a smooth gradient change will occur to the colour over the particles lifetime from one colour to the other.


例如:

part_type_colour2( part_Health, c_red, c_white);

The above code will make all particles created of the type indexed in the variable "part_Health" have a colour blend from red to white over their lifetime.


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