part_type_colour_rgb

Set the particle colour from a red, green and blue range.

语法:

part_type_colour_rgb(ind, rmin, rmax, gmin, gmax, bmin, bmax p>


参数 描述
ind The index of the particle type to change.
rmin The minimum the final colour's red component can be.
rmax The maximum the final colour's red component can be.
gmin The minimum the final colour's green component can be.
gmax The maximum the final colour's green component can be.
bmin The minimum the final colour's blue component can be.
bmax The maximum the final colour's blue component can be.


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


描述

With this function you can set the mix of red, green and blue colours for all particles created of the given type. You supply a minimum value and a maximum value for each of the three components and the particles created will have a random colour based on the given range of parameters. All values must be between 0 and 255.


例如:

part_type_rgb(global.Blood_Part, 0, 255, 0, 0, 0, 0);

The above code sets each particle emitted of the particle type indexed in the global variable "Blood_Part" to be only different shades of red.


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