part_type_colour2

Sets the particle type to blend between two colours

Syntax:

GML Code Example

part_type_colour2(ind, colour1, colour2);


Argument Description
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.


Returns: N/A


Description

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.


Example:

GML Code Example

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.





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