What it does
particles.setColor sets Color on a particles object. It takes id, c1, c2 and colorDead. colorDead is optional.
Signature
particles.setColor(id, c1, c2, colorDead?)Arguments
idc1c2colorDeadoptional
Example · generated
function start() { particles.create('main', 10); particles.setColor('main', 1, 1);}particles.create is there to give the call something to act on; particles.setColor is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.