part_type_colour_mix

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

Syntax:

GML Code Example

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:

GML Code 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.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here