part_type_colour3

Sets a particle type to fade between three colours throughout its lifespan.

Syntax:

GML Code Example

part_type_colour3( ind, colour1, colour2, colour3 );


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 be halfway through its lifespan.
colour3 The colour the particle will end at.


Returns: N/A


Description

This function can be used to set a three 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 that will be blended to half way through its lifetime and the third colour is the one with which the particle will end with. A smooth gradient change will occur through the colours over the particles lifetime from one colour to the other.


Example:

GML Code Example

part_type_colour3( part_Health, c_red, c_white, c_maroon);

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 to maroon 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