Jump to content

How to tint a particle


ZoomBox
 Share

Recommended Posts

A particle is a type of sprite, and an emitter is a type of group, so if you can find the particle you want to tint in the emitter using the normal methods you can just call .tint on it as normal. Something like this will tint all the particles in the emitter:

emitter.forEach(function(particle) {  // tint every particle red  particle.tint = 0xff0000;});

See the Emitter documentation for more.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...