natiny_particles_set_color

C
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

C
natiny_particles_set_color(embers, natiny_color_from_hex("#FFCC33"),
                           natiny_color_from_hex("#FF5500"));