natiny_particles_set_color
void natiny_particles_set_color(NatinyParticles particles, NatinyColor a, NatinyColor b);
Sets the colour each new particle starts with, chosen evenly between two colours.
Parameters
| Name | Type | Description |
|---|---|---|
particles |
NatinyParticles |
Particle system handle from natiny_particles_create |
a |
NatinyColor |
One end of the range |
b |
NatinyColor |
The other end |
Example
natiny_particles_set_color(embers, natiny_color_from_hex("#FFCC33"),
natiny_color_from_hex("#FF5500"));