natiny.particles.set_color

Lua
natiny.particles.set_color(particles, a [, b])

Sets the colour each new particle starts with, chosen evenly between two colours.

Parameters

Name Type Default Description
particles number Particle system handle from natiny.particles.create
a number One end of the range, from natiny.color
b number a The other end

Example

Lua
natiny.particles.set_color(embers, natiny.color.from_hex("#FFCC33"),
                                  natiny.color.from_hex("#FF5500"))